Google Analytics stopped tracking The Google Analytics module on a brand new Drupal 7 build just stopped tracking after 7 days. When I went to investigate, I checked the settings, all appeared fine. Then I checked the source of the page, and the analytics code was nowhere to be seen.

For now I have just added in the javascript within html.tpl.php. But I am curious why it has just stopped working for no apparent reason? A bug with the module?

This site is using a custom theme. I checked the html.tpl.php and $header and $page_bottom variables were all there.

Any ideas why this may be?
I don't see any current bugs like this in the issue queue of the module. So let's check the following:


What's up with the theme you're using? Have you tried this with another theme?
What performance settings do you use? (Is Javascript aggregation enabled? Do you use page caching?)
Is the Analytics code missing from the output when you're logged in as user 1? (If it's there, what's happened with the permissions of the module?)