Mobile app version of vmapp.org
Login or Join
Pierce454

: 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

@Pierce454

Posted in: #GoogleAnalytics

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray432

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme