简体   繁体   中英

Track Google Analytics conversions from domain to subdomain

I'd like to track the conversion rate of my site using Google Analytics across multiple subdomains.

The scenario:

A: www.site.com <- where sessions begin.

B: app.site.com <- where sign up starts.

A conversion for www.site.com is a session moving to app.site.com.

Currently conversions on site.com look like drop offs.

I've already set up two views to separate A and B.

Side note: B is ignoring referrals from A.

I've set up conversion tracking on B.

My question is: how do I track the conversion of site.com sessions travelling to app.site.com using Google's Universal Analytics?

Are you using analytics.js ? If so this happens automatically.

The main way people screw it up is by not setting cookieDomain to 'auto' , which, if you use the default snippet, should already be the case:

ga('create', 'UA-XXXX-Y', 'auto');

Without seeing your implementation, it's impossible to know why yours isn't working, but just know this does work out of the box with no special configuration.

According to the developer site , Universal Analytics does not require further customisation to the _ga cookie. Use the default analytics.js code snippet to track between your domain and subdomain. Make sure to use the javascript code in both websites.

If you require that a visit to app.site.com is considered a conversion in site.com, then you need to attach an event to the link in site.com that points to the app.site.com and setup a goal for that event.

Have a read to this article , hope that helps.

Cheers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM