Needs review
Project:
itheme
Version:
5.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2007 at 20:58 UTC
Updated:
22 Sep 2008 at 22:12 UTC
google analytics does not seem to be able to embed the code in the webpage when using itheme as the theme. Switching to another theme allows analytics to work and embed the code. Any ideas why this is happening?
Comments
Comment #1
markDrupal commentedIt works fine for me. I put the code given to me by google into a block and placed the block in the footer.
Why do you say it isn't working?
What problems are you having?
Comment #2
carldnelson commentedI am using the Google analytics module and have been collecting data fine for several weeks. Then I switched to itheme as my theme and noticed no data was being collected by Google. I checked the source of the page generated using itheme and the analytics script was not in the source. I switched back to garland theme for a few days and Google began collecting data - also on switch back to garland the analytics code was visible in the source code of my site. So, is there something in the itheme template that prevents the inclusion of the analytics code generated by the analytics module?
I eventually ended up turning off the analytics module and just embedded the script code in my page headers. It's probably just as simple and doesn't involve adding another module to my setup.
Comment #3
defender commentedI Add "php print $closure ?" to itheme/page.tpl.php
I checked the source the analytics script was in the source.
:-)
Comment #4
dr00b commentedThanks for the tip, I've made several derivative themes based off of iTheme so your post saved me a lot of headache trying to troubleshoot this!
Comment #5
waynemwyatt commentedThanks, the new-horizon theme was doing the same thing, it is fixed now with the closure tag, you saved me some time!