Commit 5b4055050ab78ada0b4a674ec7b35a35288b786a
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,6 +78,23 @@ | ||
| 78 | <title><?= Html::encode($seo->title) ?></title> | 78 | <title><?= Html::encode($seo->title) ?></title> |
| 79 | <link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico"> | 79 | <link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico"> |
| 80 | <meta name="google-site-verification" content="jNf5eVCDiS81X1qJZMVpS6g0qQpaW3-e58NTUBp-JFk" /> | 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 | <?php $this->head() ?> | 98 | <?php $this->head() ?> |
| 82 | </head> | 99 | </head> |
| 83 | <body> | 100 | <body> |
| @@ -137,7 +154,7 @@ | @@ -137,7 +154,7 @@ | ||
| 137 | 154 | ||
| 138 | <div class="container"> | 155 | <div class="container"> |
| 139 | <div class="navbar-header"> | 156 | <div class="navbar-header"> |
| 140 | - | 157 | + |
| 141 | <!-- <a class="navbar-brand home" href="--><?//= rtrim(Url::to(['site/index']), "/") ?><!--">--> | 158 | <!-- <a class="navbar-brand home" href="--><?//= rtrim(Url::to(['site/index']), "/") ?><!--">--> |
| 142 | <a class="navbar-brand home" href="/<?=$this_lang?>"> | 159 | <a class="navbar-brand home" href="/<?=$this_lang?>"> |
| 143 | <img | 160 | <img |
| @@ -848,4 +865,4 @@ | @@ -848,4 +865,4 @@ | ||
| 848 | 865 | ||
| 849 | </body> | 866 | </body> |
| 850 | </html> | 867 | </html> |
| 851 | -<?php $this->endPage() ?> | ||
| 852 | \ No newline at end of file | 868 | \ No newline at end of file |
| 869 | +<?php $this->endPage() ?> |