Commit 58e08e7662927168277ae26bc6120f887d9c2210

Authored by Alex Savenko
1 parent 3c97dbc1

GTM code changed

frontend/views/layouts/main.php
@@ -27,19 +27,19 @@ $seo=\Yii::$app->get('seo'); @@ -27,19 +27,19 @@ $seo=\Yii::$app->get('seo');
27 <html lang="<?= \Yii::$app->language ?>"> 27 <html lang="<?= \Yii::$app->language ?>">
28 <head> 28 <head>
29 <meta charset="<?= \Yii::$app->charset ?>"> 29 <meta charset="<?= \Yii::$app->charset ?>">
30 - <!-- Google Tag Manager -->  
31 - <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':  
32 - new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],  
33 - j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=  
34 - 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);  
35 - })(window,document,'script','dataLayer','GTM-NZ8XWMK');</script>  
36 - <!-- End Google Tag Manager -->  
37 <link href="https://fonts.googleapis.com/css?family=Ubuntu:400,500,700&amp;subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet"> 30 <link href="https://fonts.googleapis.com/css?family=Ubuntu:400,500,700&amp;subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet">
38 <link type="image/x-icon" href="/images/favicon.ico" rel="icon"> 31 <link type="image/x-icon" href="/images/favicon.ico" rel="icon">
39 <meta name="viewport" content="width=device-width, initial-scale=1"> 32 <meta name="viewport" content="width=device-width, initial-scale=1">
40 <?= Html::csrfMetaTags() ?> 33 <?= Html::csrfMetaTags() ?>
41 <title><?= Html::encode($seo->title) ?></title> 34 <title><?= Html::encode($seo->title) ?></title>
42 <?php $this->head() ?> 35 <?php $this->head() ?>
  36 +<!-- Google Tag Manager -->
  37 +<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  38 +new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  39 +j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  40 +'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  41 +})(window,document,'script','dataLayer','GTM-MZGFQ2B');</script>
  42 +<!-- End Google Tag Manager -->
43 <!-- Global site tag (gtag.js) - Google Analytics --> 43 <!-- Global site tag (gtag.js) - Google Analytics -->
44 <script async src="https://www.googletagmanager.com/gtag/js?id=UA-124411316-1"></script> 44 <script async src="https://www.googletagmanager.com/gtag/js?id=UA-124411316-1"></script>
45 <script> 45 <script>
@@ -52,9 +52,9 @@ $seo=\Yii::$app-&gt;get(&#39;seo&#39;); @@ -52,9 +52,9 @@ $seo=\Yii::$app-&gt;get(&#39;seo&#39;);
52 </head> 52 </head>
53 <body> 53 <body>
54 <!-- Google Tag Manager (noscript) --> 54 <!-- Google Tag Manager (noscript) -->
55 - <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NZ8XWMK"  
56 - height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>  
57 - <!-- End Google Tag Manager (noscript) --> 55 +<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MZGFQ2B"
  56 +height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  57 +<!-- End Google Tag Manager (noscript) -->
58 <?php $this->beginBody() ?> 58 <?php $this->beginBody() ?>
59 59
60 60
frontend/views/site/index.php
@@ -27,7 +27,7 @@ $moduleRequest=\Yii::$app-&gt;getModule(&#39;request_1&#39;); @@ -27,7 +27,7 @@ $moduleRequest=\Yii::$app-&gt;getModule(&#39;request_1&#39;);
27 27
28 ?> 28 ?>
29 29
30 - <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCoR1Jb-mIFUjPwKiuSlmtYBEwnJOBnAgg&callback=initMap"></script> 30 + <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCoR1Jb-mIFUjPwKiuSlmtYBEwnJOBnAgg"></script>
31 31
32 32
33 <header id="header_" class="section-box-header"> 33 <header id="header_" class="section-box-header">