Set Up Google Analytics Cross-Domain Conversion Tracking with Google Tag Manager (GTM)

There are a lot of situations where you may have your website visitors bounce around across your root domain (yourdomain.com) and sub-domains (subdomain.yourdomain.com).

I recently had this situation arise for myself. I have my Ghost blog hosted on the root domain (freak.marketing) and since I can't easily edit this theme to add a proper direct response optin page for my new online course, I used Carrd.co (aff link) to create it. I then pointed the landing page at a sub-domain (stripe.freak.marketing).

Simply adding the Google Analytics script to this sub-domain isn't going to give me accurate conversion data. For example, let's say a visitor comes in to Freak.Marketing via organic search. They then click over to stripe.freak.marketing where the Carrd lead magnet page is pointing and optin there.

The basic set up of Google Analytics would attribute this conversion to freak.marketing, not organic search like it sould be attributed.

To fix this, it's as simple as making a small edit in Google Tag Manager (GTM). This is assuming you have Google Analytics set up via a GTM tag.

You edit the custom Google Analytics Variable you're using with your Google Analytics Tag:

Google provides instructions for this here in their documentation.

Free Google AdsĀ Audit

Sign up for our newsletter and get a Free Google Ads Audit Conducted Over Zoom by a Seasoned Google Ads Expert With 10+ Years of Experience.

Just enter your email below, and we'll start delivering the goods!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.