The Google 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 use Google Tag Manager in case the Google domains are blocked, do the following:

  1. Find the following JavaScript close to the opening <head> tag on every page of your website and replace the domain www.googletagmanager.com with google-analytics-suite.bi.owox.com:
    <!-- 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://google-analytics-suite.bi.owox.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-XXXX');</script>
    <!-- End Google Tag Manager -->
  2. Find the following snippet after the opening <body> tag on every page of your website and replace www.googletagmanager.com with google-analytics-suite.bi.owox.com:
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://google-analytics-suite.bi.owox.com/ns.html?id=GTM-XXXX"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->

As the result, all the libraries necessary for Google Analytics to work will be uploaded from Google Analytics Custom Domain. Hit data will be redirected through OWOX BI proxy access point to your Google Analytics account.

Google Tag Manager container preview

To be able to preview the results of the GTM container execution while using Google Analytics Custom Domain, do the following:

1. In Google Tag Manager, on the container page Overview tab, click Preview:

GTM_container_preview_1_ENG.1.png

2. Then, click Share Preview:

GTM_container_preview_2_ENG.1.png

3. In the pop-up window, replace the sharing link domain www.googletagmanager.com with google-analytics-suite.bi.owox.com:

GTM_container_preview_3_ENG.1.png

You should get a link similar to: 

https://google-analytics-suite.bi.owox.com/start_preview/gtm?uiv2&id=GTM-ABCDEF&gtm_auth=tvRohFJJy89eOwy1kqUUA&gtm_preview=env-1&gtm_debug=x

4. That's all. Use this link to preview the container.

 

Find more details about Google Tag Manager setup in Google documentation.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.