Integrating with Google Tag Manager

Google Tag Manager allows Google to manage the tags used on your website. Common uses of tags include providing visitor statistics and tracking the success of your online advertising. To use Google Tag Manager you need to set up the Google Tag Manager container snippet on your website.

The container snippet

The Google Tag Manager container snippet looks like this:

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-ABCDEFG');</script>
<!-- End Google Tag Manager -->

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-ABCDEFG"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

In two places there is some text starting GTM- followed by letters and numbers (highlighted in blue in the example above): this is your Tag Manager ID.

Adding the container snippet to your site

Open the Integration panel and click Google Tag Manager in the menu on the left. Enter your Tag Manager ID in the field and click Add.

If you later need to remove the container snippet, click the Remove button.