Closed (won't fix)
Project:
Salamander
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2008 at 11:22 UTC
Updated:
22 Nov 2008 at 23:42 UTC
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
Comment #1
hass commentedThis 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
Comment #2
florian commented