Hi,

When using the Salamander theme, a /div tag appears between the Google script and the /body tag:

<script type="text/javascript">document.write(unescape("%3Cscript src='http://www.google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script>
<script type="text/javascript">var pageTracker = _gat._getTracker("UA-358XXXX-5");pageTracker._initData();pageTracker._trackPageview();</script>
<script type="text/javascript" src="/sites/all/modules/google_analytics/downloadtracker.js"></script>
</div>
</body>
</html>

Google was not detecting the tracking code, so I changed the theme to Garland and it worked... but I still need to use Salamander.

Is it important to move that

tag before the script?
How can I do it?

Thanks.

Comments

hass’s picture

Project: Google Analytics » Salamander
Version: 5.x-1.4 » 5.x-1.x-dev

This is not a GA bug.

It could be better to move the $footer variable after the closing DIV tag. I don't think this is a problem as it is today. If there is something wrong in layout - as an interim solution you could change this yourself in page.tpl.php

florian’s picture

Status: Active » Closed (won't fix)