Commit ca4d9c90b71ad0845d3d9d3822a2ee9ab6940512

Authored by Anastasia
1 parent 889ab655

google scripts

Showing 1 changed file with 20 additions and 1 deletions   Show diff stats
frontend/views/layouts/main.php
@@ -86,7 +86,22 @@ @@ -86,7 +86,22 @@
86 <!DOCTYPE html > 86 <!DOCTYPE html >
87 <html xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html" lang="<?= \Yii::$app->language ?>"> 87 <html xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html" lang="<?= \Yii::$app->language ?>">
88 <head> 88 <head>
89 - 89 + <!-- Global site tag (gtag.js) - Google Analytics -->
  90 + <script async src="https://www.googletagmanager.com/gtag/js?id=UA-120861020-1"></script>
  91 + <script>
  92 + window.dataLayer = window.dataLayer || [];
  93 + function gtag(){dataLayer.push(arguments);}
  94 + gtag('js', new Date());
  95 +
  96 + gtag('config', 'UA-120861020-1');
  97 + </script>
  98 + <!-- Google Tag Manager -->
  99 + <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  100 + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  101 + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  102 + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  103 + })(window,document,'script','dataLayer','GTM-N6R7982');</script>
  104 + <!-- End Google Tag Manager -->
90 <meta charset="<?= \Yii::$app->charset ?>"> 105 <meta charset="<?= \Yii::$app->charset ?>">
91 <meta name="viewport" content="width=device-width"> 106 <meta name="viewport" content="width=device-width">
92 <link type="image/x-icon" href="favicon.ico" rel="icon"> 107 <link type="image/x-icon" href="favicon.ico" rel="icon">
@@ -95,6 +110,10 @@ @@ -95,6 +110,10 @@
95 <?php $this->head() ?> 110 <?php $this->head() ?>
96 </head> 111 </head>
97 <body id="body"> 112 <body id="body">
  113 + <!-- Google Tag Manager (noscript) -->
  114 + <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6R7982"
  115 + height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  116 + <!-- End Google Tag Manager (noscript) -->
98 <?php $this->beginBody() ?> 117 <?php $this->beginBody() ?>
99 <div class="transition-loader"> 118 <div class="transition-loader">
100 <div class="transition-loader-inner"> 119 <div class="transition-loader-inner">