Book the exclusive demo launch to experience the OWOX BI analytics

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 with
    <!-- Google Tag Manager -->
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    <!-- End Google Tag Manager -->
  2. Find the following snippet after the opening <body> tag on every page of your website and replace with
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src=""
    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:


2. Then, click Share Preview:


3. In the pop-up window, replace the sharing link domain with


You should get a link similar to:

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


Please sign in to leave a comment.