Google Tag Manager
Container Generator

Configure and generate a boilerplate Google Tag Manager container and get started with extensive Google Analytics tracking within minutes.

Trackers included: pageviews, scroll depth, video interactions, javascript errors, time spent on page, email links, phone links, outbound links, download links, form submissions and form abandonment, etc.

Other goodies: Tracking parameters remover.

1. Choose and configure your trackers

A basic pageview tracker.

Provides trackers for 4 link types based on their URL: email links, phone links, download links and outbound links.

Regular expression matching your hostname (adapt and test it). Used to discriminate inbound from outbound links.

A regular expression that matches all of the "download links" on your website. Defaults to common file extensions. Adapt and test it. Used for download link tracking.

Provides trackers for links containing a class starting with 'track-'. Handy to track call-to-action links, or any important link that might not have a specific-enough URL.

Provides tracking of all form submissions and abandonments (including the fields that were changed before abandonment, thanks to Auto GTM Form Abandonment).

Provides scroll tracking (in percentages as well as milliseconds) thanks to Parsnip ScrollDepth library. Requires jQuery.

Provides tracking of interactions with embedded Youtube Videos, through Lunametrics Youtube Tracker.

Provides finegrained tracking of engagement time on site thanks to Riveted. Beware this can generate quite some hits and might get make you reach your monthly 10Mio hits quotas (Google Analytics Free).

Basic JS errors tracking thanks to Google Tag Manager default javascript error monitoring.

Cleans up the page URL of the many potential tracking parameters attached to it.

The list of the tracking parameter names you want to remove, separated by "|". Note that this removal happens after the first pageview hit has been sent to Google Analytics.

2. Global Google Analytics Settings

The Google Analytics Property ID for your website. Used by all GA trackers.

Learn about IP anonymization in Google Analytics.

Force SSL, unless you have good reasons not to. Learn more about it.

Having enough speed data is always great: adapt your site speed sample rate based on your number of daily pageviews.

3. Download your customized container

4. Import it in Google Tag Manager

  1. Create a new Google Tag Manager account and web container if you haven't done so already.
  2. On your GTM Admin Panel, click on 'Import Container', choose the file you just generated, with option 'overwrite'.
  3. Integrate the GTM snippet of your container to your website.
  4. Set your container in preview mode, and interact with the website to see the tracking happen.
  5. Publish when ready.
  6. Enjoy the unique sound of interaction data flowing in!

6. Enjoy the ride!

This tool is proudly made and maintained at Liip. Ping Geoffroy Perriard for any question or request. Praises also welcome.

By using this tool you agree to respect the licensing terms of included libraries: