Commit 5b4055050ab78ada0b4a674ec7b35a35288b786a

Authored by Alexey Boroda
1 parent 069d8337

-Facebook pixel

Showing 1 changed file with 19 additions and 2 deletions   Show diff stats
frontend/views/layouts/main.php
... ... @@ -78,6 +78,23 @@
78 78 <title><?= Html::encode($seo->title) ?></title>
79 79 <link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico">
80 80 <meta name="google-site-verification" content="jNf5eVCDiS81X1qJZMVpS6g0qQpaW3-e58NTUBp-JFk" />
  81 + <!-- Facebook Pixel Code -->
  82 + <script>
  83 + !function(f,b,e,v,n,t,s)
  84 + {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  85 + n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  86 + if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  87 + n.queue=[];t=b.createElement(e);t.async=!0;
  88 + t.src=v;s=b.getElementsByTagName(e)[0];
  89 + s.parentNode.insertBefore(t,s)}(window, document,'script',
  90 + 'https://connect.facebook.net/en_US/fbevents.js');
  91 + fbq('init', '827603981103695');
  92 + fbq('track', 'PageView');
  93 + </script>
  94 + <noscript><img height="1" width="1"
  95 + src="https://www.facebook.com/tr?id=827603981103695&ev=PageView&noscript=1"
  96 + /></noscript>
  97 + <!-- End Facebook Pixel Code -->
81 98 <?php $this->head() ?>
82 99 </head>
83 100 <body>
... ... @@ -137,7 +154,7 @@
137 154  
138 155 <div class="container">
139 156 <div class="navbar-header">
140   -
  157 +
141 158 <!-- <a class="navbar-brand home" href="--><?//= rtrim(Url::to(['site/index']), "/") ?><!--">-->
142 159 <a class="navbar-brand home" href="/<?=$this_lang?>">
143 160 <img
... ... @@ -848,4 +865,4 @@
848 865  
849 866 </body>
850 867 </html>
851   -<?php $this->endPage() ?>
852 868 \ No newline at end of file
  869 +<?php $this->endPage() ?>
... ...