Commit d5ed07ff37798b032befb5a7324a5b299717fc57
1 parent
7af1c1f4
-Tag manager added
Showing
1 changed file
with
11 additions
and
0 deletions
 
Show diff stats
frontend/views/layouts/main.php
| ... | ... | @@ -20,6 +20,17 @@ AppAsset::register($this); | 
| 20 | 20 | </head> | 
| 21 | 21 | <body id="contrast" class=""> | 
| 22 | 22 | <?php $this->beginBody() ?> | 
| 23 | +<!-- Google Tag Manager --> | |
| 24 | +<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
| 25 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
| 26 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
| 27 | + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
| 28 | + })(window,document,'script','dataLayer','GTM-K82GX8K');</script> | |
| 29 | +<!-- End Google Tag Manager --> | |
| 30 | +<!-- Google Tag Manager (noscript) --> | |
| 31 | +<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K82GX8K" | |
| 32 | + height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | |
| 33 | +<!-- End Google Tag Manager (noscript) --> | |
| 23 | 34 | <?php echo $content ?> | 
| 24 | 35 | <?php $this->endBody() ?> | 
| 25 | 36 | </body> | ... | ... | 
 
