Commit b6d8fdf4527b9084f9f78120b63c3f1a2b4dc1ea
1 parent
58552c89
tag manager google seo
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
frontend/views/layouts/main.php
@@ -90,6 +90,15 @@ ga('send', 'pageview'); | @@ -90,6 +90,15 @@ ga('send', 'pageview'); | ||
90 | <?php $this->head () ?> | 90 | <?php $this->head () ?> |
91 | </head> | 91 | </head> |
92 | <body> | 92 | <body> |
93 | + <!-- Google Tag Manager --> | ||
94 | + <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-5KPBHP" | ||
95 | + height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
96 | + <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
97 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
98 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
99 | + '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
100 | + })(window,document,'script','dataLayer','GTM-5KPBHP');</script> | ||
101 | + <!-- End Google Tag Manager --> | ||
93 | <?php $this->beginBody () ?> | 102 | <?php $this->beginBody () ?> |
94 | <?= BgWidget::widget () ?> | 103 | <?= BgWidget::widget () ?> |
95 | 104 |