By luyendao on
Can anbyody point me in the right direction?
The JS tracking code output by the module doesn't seem to cover sub-domains or have any options to toggle this on, checking the google GA site, the JS tracking code is different, where there's a sub-domain variable, but this is manually added JS code, and obviously i want to make sure I can do the same with the module.
Any tips are helpful,
Thank you
Comments
Wish I could delete this post
Wish I could delete this post ;-)
I figured it out, but it's quite complex, basically don't touch anything on the drupal module end, all the filtering is done in Google analytics under filter manager, and then applying said filter(s) to the profile you've created.
How To Track Sub-Domains / Cross-Domains in Google Analytics
I was about to try following through this blog post until I read your posting that this can be done in Google Analytics, so looks like the better option than tinkering with the module itself ;-)
http://www.dannytalk.com/2009/04/05/how-to-track-sub-domains-cross-domai...
I'm glad you didn't...
Hi,
Glad to hear you're all set up - I think I am, but I'm not sure! Having read all the stuff on Google Analytics, I ended up with a relatively simple setting for my situation:
Main site is http://mydomain.org ("www." removed/redirected in .htaccess) - set just like this in GA and collecting data.
Subdomains take the form http://subdomain.mydomain.org - main profile in GA copied as a sub-profile, so the domain is still set as http://mydomain.org, but for each copied profile I set a filter to include only traffic from "subdomain.mydomain.org".
No extra code added to the Drupal GA module custom setting.
What I hope I'm getting is ALL traffic to the entire domain in the main GA profile but JUST the subdomain traffic reported in the sub-profile.
What I really got confused over is whether the sub-profile should be set as the master domain - http://mydomain.org - or whether it should be http://subdomain.mydomain.org. The latter would seem to make more sense, in which case there would be no need for a filter?
If there is anyone out there who even undertands what I just wrote I'd appreciate being put out of my misery!
Thanks.