Hello. I'm a newbie so please bear with me. I'm using domain access module 6.x-2.11 for a site wherein the main domain points users to multiple subdomains (domain.com, sub1.domain.com, sub2.domain.com, etc.). I have configured the google analytics module as attached for 'all domains'.
In my google analytics account, I have tried adding filters for the main domain as well as the subdomains but no data is collected.
I then abandoned the use of filters and tried using advanced segments instead. In each segment, I find an exact match for domain 'sub1.domain.com' or 'sub2.domain.com', etc. but no visits are ever found.
I've been searching and trying different things for an entire day to no avail.
The fix must be very simple, I just can't figure it out.
Can someone please help?
Thank you.
Comment | File | Size | Author |
---|---|---|---|
google_analytics_settings.jpg | 1.71 MB | newbie999 |
Comments
Comment #1
hass CreditAttribution: hass commentedComment #2
agentrickardI don't even understand the question.
You probably want the module in http://drupal.org/node/547390#comment-2942284
Comment #3
hass CreditAttribution: hass commentedRTFM, http://drupal.org/node/595520
Comment #4
agentrickardThe module linked to above gives you a UI for that.
Comment #5
agentrickardComment #6
newbie999 CreditAttribution: newbie999 commentedHello. I apologize if I wasn't clear. Maybe I posted this to the wrong project. Should I post this to the google analytics project instead?
The issue I'm having is that I'm using domain access and have decided to use 1 google analytics account to track analytics data for all my domains (primary domain and subdomains). However, when I pull up my analytics report from google, I'm unable to see data for any of my subdomains. When I use advanced segments to segment the data by subdomain, no data is found for any of my subdomains.
Would you be able to direct me to where I may be able to find help? Thank you.
Comment #7
newbie999 CreditAttribution: newbie999 commentedHello. I apologize if I wasn't clear. Maybe I posted this to the wrong project. Should I post this to the google analytics project instead?
The issue I'm having is that I'm using domain access and have decided to use 1 google analytics account to track analytics data for all my domains (primary domain and subdomains). However, when I pull up my analytics report from google, I'm unable to see data for any of my subdomains. When I use advanced segments to segment the data by subdomain, no data is found for any of my subdomains.
Would you be able to direct me to where I may be able to find help? Thank you.
Comment #8
agentrickardI cannot. That sounds like a Google question to me.
Are the pages all getting instrumented properly? (e.g. is the GA code on all the pages as expected).
Comment #9
newbie999 CreditAttribution: newbie999 commentedYes, I checked a random number of pages and they have the snippet below right before the /body tag.
Also, there's quite a bit of content that is common between the primary domain and the subdomains. However, even for the content that is specific to each subdomain, I get no data even though there is traffic to those pages.
Thanks for your help.
Comment #10
newbie999 CreditAttribution: newbie999 commentedComment #11
onaz CreditAttribution: onaz commentedThis definitely seems like a problem outside of the scope of Domain Access.
I have a similar setup with no issues whatsoever. I have a Domain Access site with ~8000 domains and one tracking code to rule them all. Stuff you need to have in order for it to work:
All should be ok with those settings. If in doubt, use Firebug's network analysis tool to verify that Google is really contacted on each request.
Comment #12
hass CreditAttribution: hass commented#10 shows ga module is not configured for domains with subdomains tracking. Above code shows the config is plain default and is configured for single domains/site and this is incorrect! It's the second radio box that need to be selected... Ga module admin page is very clear about this. There is no need for anything else - ga supports all this stuff. Nothing required from domain access.
Comment #13
agentrickardMoving.
Comment #14
hass CreditAttribution: hass commentedComment #15
newbie999 CreditAttribution: newbie999 commentedI was finally able to get it working. What I was missing was this piece of code in the 'custom javascript code' section of the google analytics module configuration (code snippet before):
_gaq.push(['_setDomainName', '.mydomain.com']);
Once the code was in place, I also needed to add a filter to my google analytics profile per #11 to show the full domain in the reports (domain.com, sub1.domain.com, sub2.domain.com, etc.).
For those experiencing the same problem I did, this documentation on cross-domain tracking proved extremely helpful - http://code.google.com/apis/analytics/docs/tracking/gaTrackingSite.html
Comment #16
hass CreditAttribution: hass commentedNO!!! This code will be added AUTOMATICALLY if you setup the correct radio box in the first field set! If you don't see this radios you are blind or not using the latest release. Remove the code snippet from custom code snippet settings or you are asking for future troubles.
Comment #18
Erik Seifert CreditAttribution: Erik Seifert commentedExpose to domain_variables
Create a custom modue (website_custom)
Comment #19
hass CreditAttribution: hass commentedAlready inside the module.