: Google analytics referals with multiple sites on one domain I have two sites, both on the same domain name. I.E. www.example.com www.example.com/blog I have an analytics account set up for both
I have two sites, both on the same domain name. I.E.
example.com www.example.com/blog
I have an analytics account set up for both which works well; I can see that traffic for the sites in their respective accounts. However, I want to be able to track referrals from example.com/blog towww.example.com. Although I know referrals are occurring, I can't seem to find any way to track them in analytics. I think something needs to change with my analytics code, but I am not sure what to do. Do I need to do something with the cookie domain?
More posts by @Pierce454
1 Comments
Sorted by latest first Latest Oldest Best
Looks like you need to specify the cookie path. Try:
//Tracking Code Customizations Only
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'YOUR-ACCOUNT-ID']);
_gaq.push(['_setCookiePath', '/blog/']);
_gaq.push(['_trackPageview']);
See Tracking a Single Subdirectory
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.