Commit 128a5abc authored by Matija Obreza's avatar Matija Obreza
Browse files

GA custom variables must have unique slot index

parent 29713803
......@@ -33,10 +33,10 @@
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '${googleAnalyticsAccount}']);
_gaq.push(['_trackPageview']);
try {
_gaq = _gaq.concat(_pageGaq);
} catch (e) {}
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
......
......@@ -251,8 +251,8 @@
_pageGaq = [];
_pageGaq.push(['_setCustomVar', 1, 'Institute', '${accession.instituteCode}']);
_pageGaq.push(['_setCustomVar', 1, 'Genus', '${accession.genus}']);
<c:forEach items="${crops}" var="crop">_pageGaq.push(['_setCustomVar', 1, 'Crop', '${crop.shortName}']);
_pageGaq.push(['_setCustomVar', 2, 'Genus', '${accession.genus}']);
<c:forEach items="${crops}" var="crop">_pageGaq.push(['_setCustomVar', 3, 'Crop', '${crop.shortName}']);
</c:forEach>
</script>
</body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment