This is a public page that can be shared.

The goal is to ensure we track your original traffic source to your website as the source for pageviews and events on localmed.com. Normally, once a user transfers from your website to localmed.com, a new session is created and your website is treated as the traffic source.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/43a23748-bafb-4e5b-9b27-61234a528fa2/Untitled.png

Table of Contents

  1. Set up Auto-Linking for localmed.com
  2. Add a Referral Exclusion for localmed.com
  3. Set up a Reporting View and an Advanced Filter (Optional)
  4. Create Goals for LocalMed Events
  5. Send LocalMed Your Google Analytics Tracking ID

1. Set up auto-linking for localmed.com

Cross-domain tracking works by sharing a unique client ID between a source domain and a destination domain. To set up cross-domain auto-linking on the source domain (your website) for URLs pointing to the destination domain (localmed.com), follow the steps below.

If you're using analytics.js

Find the create method call in your site's code:

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

Make the following changes to require the linker plugin and call its autoLink method:

ga('create', 'UA-XXXXXXX-Y', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['localmed.com']);

These changes must be made everywhere the create method call appears in your code.

Google Documentation: https://developers.google.com/analytics/devguides/collection/analyticsjs/linker#autolink