After upgrading to Drupal 4.7.4 the Google Analytics code at Google showed no stats for the website. Google reported that the Analytics code is being received, although no stats were present. The Drupal site statistics had confirmed that there were visitors for the last three days.
Per this thread: http://drupal.org/node/90315 , I moved the line below (which was present in my template's page.tpl.php) to just before </body>:
<?php echo $closure ?>
I also installed the latest 4.7 Google Analytics Module (16/10/2006)
I will report back later on whether this worked. I could find no other posts on Drupal.org concerning this possible problem with 4.7.4 and Google Analytics.
Hope this helps someone else, or am I the only person with this 'experience'?
Comments
Two questions: 1. Is the GA
Two questions:
1. Is the GA code appearing the HTML output as specified?
2. Did you set the correct GA site ID Key?
Yes for the code and No for the page source
Thanks!!!
The GA code was set correctly and no, when I just viewed the page source the GA code did not appear. I returned to > Administer > Settings > Googleanalytics and sure enough, looking further all the checkboxes under User Role Tracking were blank. Filling them in restored the GA number to the Page source code.
It never occurred to me to look further at the further options on the GA settings page than the GA tracking code box.