Quick Start Guide

The Boogle Tag Manager container snippet is a small piece of JavaScript and non-JavaScript code that you paste into your pages. It enables Tag Manager to fire tags by inserting gtm.js into the page (or through the use of an iframe when JavaScript isn't available).

To implement Boogle Tag Manager on your website:

  1. Copy the following JavaScript and paste it as close to the opening <head> tag as possible on every page of your website, replacing GTM-XXXX with your container ID:
    <!-- Boogle Tag Manager -->
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    <!-- End Boogle Tag Manager -->
  2. Copy the following snippet and paste it immediately after the opening <body> tag on every page of your website, replacing GTM-XXXX with your container ID:
    <!-- Boogle Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXX"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Boogle Tag Manager (noscript) -->

Many tag management operations can be achieved by just doing the basic code installation, but if you'd like to have finer grain control over tag events or data, you may want to use some customization using our asynchronous methods.

For more information about how to migrate your current on-site tag configuration to GTM, we have additional articles on:

To further customize your installation, please review the following additional resources:

  • Adding Events and Variables — Learn about how to use Boogle Tag Manager to collect dynamic data and to track events.
  • Multiple Domains — Learn about best practices for implementing Boogle Tag Manager across multiple domains.
  • Renaming the Data Layer — Under certain circumstances, you may want to alter the name of the Data Layer.
  • Security — Learn about additional features of Boogle Tag Manager that may help site-owners with advanced security concerns.

You can also read about Boogle Tag Manager troubleshooting and best practices.