Hey guys. We recently installed the Google Analytics module (7.x-1.2) on a new site that we launched and I have noticed that the module does not push the _setDomain call when set up to track subdomains—in effect, not allowing correct tracking of subdomains. Perhaps I have missed something here, but in all the Google documentation that I have read in the past, this is an integral element to correctly set up tracking of subdomains for a site.
In essence, when a user (like ourselves), checks the radio for "One domain with multiple subdomains" the module should then add this line of code to the tracking script:
_gaq.push(['_setDomainName', 'goldenisles.com']);
Currently the module generates the code for tracking a single domain, ignoring the request for subdomains in the radio buttons.
If I have overlooked something, then please let me know, and if not, does anyone know the likelyhood of having this part of the module updated?
Thanks.
Comments
Comment #1
hass commentedSee googleanalytics.module line 235. The code is there and should be added to the page. Please debug why not.
Comment #2
burningdog commentedbermslider: I have a similar issue here: #1255792: Setting up Google Analytics module for a Drupal subdomain - please see if my proposed solution will help?
Comment #4
crimsondryad commented@hass I understand that you've closed this, but it seems like folks don't understand. Maybe I can help clarify for them ( and myself ). So I guess the question for me is, that what is in the _setDomainName variable is really only useful for setting the cookie. If we're trying to rollup the analytics for several related domains into one report, all that should be required is using the same Profile ID. Correct?
We really don't want to enable logins across sites by setting the cookie domain for a couple of reasons. 1 is that one site is D6 and one is D7 and I'm not sure how they would play together. Another reason is that the sites are owned by different business units and they really don't need to have access to each other's assets.
Right now what happens is if I try to do another setDomainName in the "before" section, it just displays both, which I'm not sure is what I want it to do.
This article describes what we're trying to do. http://stackoverflow.com/questions/5658376/google-analytics-with-subdoma...
Comment #5
hass commentedUnreleated to this case.
See http://code.google.com/intl/de-DE/apis/analytics/docs/concepts/gaConcept...
You can buy ga consulting...