Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a new mobile site which sites on m., m.example.com

What is the best method for integrating it's Google Analytics data with the existing data I have.

I want them together so I can easily see total visits for example. But then would like to segment them again to see how much traffic is going to each domain.

Is this possible, if so how?

Thanks

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Take a look at the Google Document "Tracking Multiple Domains - Web Tracking (ga.js)", specifically "Tracking Across Multiple Domains and Sub-domains".

share|improve this answer
    
Thanks @initall looks like I just need the same code on both, with the same value for '_setDomainName' and true for '_setAllowLinker' ? –  Jake N Jan 29 '13 at 11:36
    
You can relax to only _setDomainName('.example.com'). The _setAllowLinker is just for the examples where they link to and between different toplevel domains, as the cookie information (which is what setDomainName sets) is otherwise lost. –  initall Jan 29 '13 at 11:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.