Brightspot Integrations Guide

Accessing Google Tag Manager code snippet


Tip
This procedure is also described in Setup and install Tag Manager.

To access Google Tag Manager code snippet:

  1. Login to your Google Tag Manager account at tagmanager.google.com. You see a list of available containers.
  2. Under the Container Name list, select the container from which you want to add the script. Google Tag Manager’s container dashboard appears.
  3. Under the Admin tab, click Install Google Tag Manager on the right. A page displaying JavaScript snippets appears.
  4. Copy the first JavaScript code snippet.

See the following generalized code snippet as an example of what to copy:

<!-- 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-1234567');</script>
<!-- End Google Tag Manager -->

Previous Topic
Google Tag Manager
Next Topic
Adding Google Tag Manager snippet to Brightspot site
Was this topic helpful?
Thanks for your feedback.
Our robust, flexible Design System provides hundreds of pre-built components you can use to build the presentation layer of your dreams.

Asset types
Module types
Page types
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

Content types
Modules
Landing pages
Everything you need to know when creating, managing, and administering content within Brightspot CMS.

Dashboards
Publishing
Workflows
Admin configurations
A guide for installing, supporting, extending, modifying and administering code on the Brightspot platform.

Field types
Content modeling
Rich-text elements
Images
A guide to configuring Brightspot's library of integrations, including pre-built options and developer-configured extensions.

Google Analytics
Shopify
Apple News