Commit efb58e2a41283f4d2490cfa3e1ff98daab47b401
1 parent
fa17c1a0
change google tag manager code
Showing
1 changed file
with
12 additions
and
12 deletions
Show diff stats
frontend/views/layouts/main.php
| @@ -51,13 +51,13 @@ $settings = Settings::getInstance(); | @@ -51,13 +51,13 @@ $settings = Settings::getInstance(); | ||
| 51 | <?= Html::csrfMetaTags() ?> | 51 | <?= Html::csrfMetaTags() ?> |
| 52 | <title><?= Html::encode($seo->title) ?></title> | 52 | <title><?= Html::encode($seo->title) ?></title> |
| 53 | <?php $this->head() ?> | 53 | <?php $this->head() ?> |
| 54 | -<!-- Google Tag Manager --> | ||
| 55 | -<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
| 56 | -new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
| 57 | -j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
| 58 | -'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
| 59 | -})(window,document,'script','dataLayer','GTM-MZGFQ2B');</script> | ||
| 60 | -<!-- End Google Tag Manager --> | 54 | + <!-- Google Tag Manager --> |
| 55 | + <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
| 56 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
| 57 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
| 58 | + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
| 59 | + })(window,document,'script','dataLayer','GTM-MM98QCC');</script> | ||
| 60 | + <!-- End Google Tag Manager --> | ||
| 61 | <!-- Global site tag (gtag.js) - Google Analytics --> | 61 | <!-- Global site tag (gtag.js) - Google Analytics --> |
| 62 | <script async src="https://www.googletagmanager.com/gtag/js?id=UA-150418728-1"></script> | 62 | <script async src="https://www.googletagmanager.com/gtag/js?id=UA-150418728-1"></script> |
| 63 | <script> | 63 | <script> |
| @@ -69,11 +69,11 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | @@ -69,11 +69,11 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
| 69 | </script> | 69 | </script> |
| 70 | </head> | 70 | </head> |
| 71 | <body> | 71 | <body> |
| 72 | - <!-- Google Tag Manager (noscript) --> | ||
| 73 | -<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MZGFQ2B" | ||
| 74 | -height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
| 75 | -<!-- End Google Tag Manager (noscript) --> | ||
| 76 | - <?php $this->beginBody() ?> | 72 | + <!-- Google Tag Manager (noscript) --> |
| 73 | + <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MM98QCC" | ||
| 74 | + height="0" width="0"></iframe></noscript> | ||
| 75 | + <!-- End Google Tag Manager (noscript) --> | ||
| 76 | + <?php $this->beginBody() ?> | ||
| 77 | <header id="header_" class="section-box-header"> | 77 | <header id="header_" class="section-box-header"> |
| 78 | 78 | ||
| 79 | <div class="section-header"> | 79 | <div class="section-header"> |