Search code examples
google-analyticsanalyticsuniversal-analytics

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?


Solution

  • 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.