Implementing SegMetrics with Google Tag Manager

This article provides a step-by-step guide on how to implement SegMetrics with Google Tag Manager (GTM).
Installing the SegMetrics tracking snippet through Google Tag Manager allows you to deploy your SegMetrics tracking to all of your marketing pages without any additional setup or configuration.

Implement SegMetrics with Google Tag Manager

Google Tag Manager (GTM) is a free application that allows users to remotely alter and activate certain code snippets that fire in a web or mobile app, without requiring direct access to the codebase or an App Store resubmission.

To use GTM you must install a single code snippet that fetches and runs any custom script tags you’ve set up in GTM’s own UI based on your triggers.

The software allows you to alter isolated portions of your code through a relatively intuitive UI, without much risk of altering or breaking the existing functionality of your site.

1. Get Your Tracking Snippet

SegMetrics comes with its own Tracking Snippet that collects advanced metrics on your leads, including their real lead source, optin URL, UTM codes from when they first hit your site, geo-location and much, much more.

  1. Go to your Site Setup page from the gear in the top menu
  2. Copy the snippet code and put it on every page of your website, right before the closing </body> tag.
    You should include this code even on pages where you don't have any optin forms, so that we can accurately track your lead sources.
  3. You can see the full instructions on how to configure your Snippet under Installing the Tracking Snippet
  4. Copy your tracking code for use in setting up the tag in following steps. You will need this later.

2. Configure Google Tag Manager

  1. Log in to your Google Tag Manager account.
  2. Select your website's container and click Add a new tag.
  3. Name the tag SegMetrics Tracking Snippet.
  4. Under Tag Configuration choose Custom HTML Tag.
  5. Copy the SegMetrics Snippet from above, and paste the code in the Google Tag Manager HTML container.
  6. Under Triggering select All Pages.
  7. Click Save.
  8. When you're finished creating your tags, click Publish.

3. Check if the Tracking Snippet is Working 

Once you've uploaded all your events, you should check if your Tracking Snippet is working correctly. To check that your pixel is working properly on your live site, follow the instructions under Debugging Your Tracking Snippet

Still need help? Contact Us Contact Us