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 @@ ...@@ -33,10 +33,10 @@
<script type="text/javascript"> <script type="text/javascript">
var _gaq = _gaq || []; var _gaq = _gaq || [];
_gaq.push(['_setAccount', '${googleAnalyticsAccount}']); _gaq.push(['_setAccount', '${googleAnalyticsAccount}']);
_gaq.push(['_trackPageview']);
try { try {
_gaq = _gaq.concat(_pageGaq); _gaq = _gaq.concat(_pageGaq);
} catch (e) {} } catch (e) {}
_gaq.push(['_trackPageview']);
(function() { (function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
......
...@@ -251,8 +251,8 @@ ...@@ -251,8 +251,8 @@
_pageGaq = []; _pageGaq = [];
_pageGaq.push(['_setCustomVar', 1, 'Institute', '${accession.instituteCode}']); _pageGaq.push(['_setCustomVar', 1, 'Institute', '${accession.instituteCode}']);
_pageGaq.push(['_setCustomVar', 1, 'Genus', '${accession.genus}']); _pageGaq.push(['_setCustomVar', 2, 'Genus', '${accession.genus}']);
<c:forEach items="${crops}" var="crop">_pageGaq.push(['_setCustomVar', 1, 'Crop', '${crop.shortName}']); <c:forEach items="${crops}" var="crop">_pageGaq.push(['_setCustomVar', 3, 'Crop', '${crop.shortName}']);
</c:forEach> </c:forEach>
</script> </script>
</body> </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