In today’s video post, we’re going to tackle a simple way to get Google Analytics to recognize that traffic to your root and subdomains should be treated as a single session while maintaining the correct traffic source and most importantly, not reporting self referrals.

Steps for setting up subdomain tracking in Google Analytics:

  1. Install GA code. Default UA code, all subdomains.
  2. Create views, filters and exclusions.
  3. Test
  4. Celebrate your accomplishment!

Note from the video:

When setting up the ‘Show subdomain filter’, here’s what you need:

Filter Type: Custom, Advanced

Field A -> Extract A: (.*)

Field B -> Extract B: (.*)

Output To -> Constructor: $A1$B1



Check out our Google Analytics Course on