Closed (fixed)
Project:
Google Analytics
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2009 at 07:56 UTC
Updated:
18 Feb 2014 at 13:30 UTC
Jump to comment: Most recent
Comments
Comment #1
bobin commentedComment #2
hass commentedDisable local caching of ga.js. Google cannot verify if the file is locally cached... after successful verification you can turn the feature on.
Comment #3
hass commentedASIDE - if you have read the description next to the checkbox you would be aware about this.
Comment #4
sbydrupal commentedI have the same problem.
- Installed the latest 6x-2.2 module
- Did not turn on the caching
- As a precaution, turned off also the Views Cache, Performance Cache,
- Tracking is not recognized in Google Account
Did not pass the javascript code as the module indicates it is automatically recognized.
Any feedback will be appreciated.
Thanks
Comment #5
sbydrupal commentedSolved. Just as reference for future users:
I had deleted the "Closure Region" related entries in page.tpl.php, which caused the Google Analytics Module not enter the javascript code to the footer region. Added Closure entries back and Google recognized it.
Thanks for the module.
Comment #6
talisker commentedAnother fix for reference:
I just had this same problem, turned out to be the access content permission. I have it off for anonymous users so you need to login to view content, but it seems it was also hiding the analytics javascript from google.
Allowing anonymous users access to content fixed this for me.
Comment #7
Dragolin commentedI have a similar problem, google does not recognise the tracker installed, I have the local caching disabled
Code in my footer:
Google code should be:
Any reason why it is not generated as it should be?
Comment #8
hass commentedIt's the same - it's only XHTML strict save and this is how core works. Clear your caches.
Comment #9
Dragolin commentedthx you were right, it works now!
Comment #11
pimousse98 commentedI'm having the same issue: cache was cleared, and view source for a logged out user shows the Javascript (same as posted by Dragolin above). My anonymous users don't have "view content" rights, but shouldn't that be a problem since the Javascript is shown? I could turn it on briefly if that allows the tracking to be checked by Google, but I can't keep it on for any extended period of time and would rather not if I can avoid it.
Thanks
Comment #12
hass commentedI would turn my webserver OFF if I do not like to have users on my site. *shaking the head*
Comment #13
pimousse98 commentedErr... sorry I wasn't clear, this site is used to post and share files for a company team. So all content should be password-protected. The statistics that Drupal keeps are ok, but incomplete, and I thought Google Analytics would help.
I ended up turning on anonymous access for a minute and then off and Google seemed to detect the JS, however I'm still waiting for data to appear (it's been a day), and I'm wondering if anyone had issues with tracking password-protected content.
Comment #14
hass commentedGoogle cannot verify your site if it's only for logged in users... I have never tested this myself...
Comment #15
pimousse98 commentedFYI - I did the temporary "anonymous user can access content" enabling, long enough for GA to pick it up - it showed it as detected, then now (it's been a little less than a day since "verification") it shows "receiving data" as the status (I have disabled anonymous content access now). There are still no page views shown, so I can't confirm it's working yet. I will post again to update, as other people might be interested in making this work as well.
Thanks :)
Comment #16
hass commentedI hope you are aware that by default many pages of logged in users - like all "admin" pages + all edit pages and so on are not logged.
Comment #17
ailgm commentedUnfortunately I've got this problem too -- I've tried all the suggestions on this thread to no avail.
My site is www.americae-commerce.com
Suggestions would be appreciated.
Comment #18
eikici commentedI got the same problem. Module set up as suggested, but no GA script detected... the "closure region" php code print just a newline.
Comment #19
ailgm commentedI am still at a loss on how to fix this. I've now tried disabling every optional module except Google Analytics and switching to a standard theme. Nothing seems to make a difference.
Comment #20
hass commentedhttp://www.americae-commerce.com/ tracks users. Nothing to do.
Comment #21
hass commentedComment #22
ailgm commentedComment withdrawn. The problem was an incorrect ID.
Comment #23
ailgm commentedComment #24
mox386 commentedClearing the cache solved the problem for me.
Comment #25
spidersilk commentedI'm having this problem too, and I've tried every fix I've seen posted. Specifically:
But thus far nothing has worked. The site is http://www.carolyndallmandownes.com/ -- does anyone have any ideas as to what else I might be able to try?
Comment #26
hass commentedI see no reason why this should not work on your site and the site currently tracks data. Maybe you are too impatient. Otherwise you may like to try v3.x
Comment #27
dalegrebey commentedI have Google Analytics enabled and print $closure right before my close body tag. When I view source, however, I do not see the tracking code, simply a non break space.
I've:
Any idea as to why the $closure code would not produce the appropriate Google Analytics Tracking Code to be verified when I view page source?
Thanks,
Dale
Comment #28
hass commentedComment #29
Jazz Li commentedI had this problem, and I resolved it by adding a trailing "/" to the hostname in the profile, in Google Analytics' settings.
"example.com" FAIL
"example.com/" SUCCESS
Comment #30
baby.hack commentedGoogle Analytics is telling me that I don't have the Tracking Code Installed.
I've got a multi-site Drupal 7 single install. My default site and two others have this module installed. All three sites have the print $page_bottom in an html.tpl.php file in the themes they each use. Each one has the module set to put the code in footer. I have separate GA codes for all three sites, which have separate domains all parked on the same server. Codes are correct. Content is viewable by any users.
My default site seems to have the code at the end of the body. This appears to be the same code that Google Analytics says to put in each page. Google Analytics says there is no tracking code installed.
The other two sites don't have the script, but they do have a
tag, which is crammed full of code. They also aren't recognized by Google. Help? EDIT: Hmmm... Google Analytics Tracking Code still says Tracking Status: Tracking Not Installed, but when I switched to the "Old Version" of Google Analytics, I saw that it said Recieving Data, and that there are statistics there. Apparently there is a bug on the Tracking Code tab in the New Version of Google Analytics, but I am indeed getting stats now. (I had to move the code to the header in one site, for some reason, even though the $page_bottom was part of the theme.)Comment #31
PeterG commentedAdding a trailing slash as described in #29 fixed the issue for me.
Comment #32
hass commentedYou mean on http://www.google.com/analytics/ in the profile settings? Sounds like an Apache configuration bug on your webserver. Just try to run your site URL without a slash and see; if page loading fails. I guess it will fail...
Comment #33
branram commentedI am having this issue as well. We are using the Universal Analytics and have installed 7.x-2.x-dev as this was the only version stated to work with UA... is there some known issue with tracking not begin detected by Google?