Commit 259fc462bb612859e2bf1fafa33e180180672000

Authored by Timur Kastemirov
1 parent 57fac3ba

pixel code fb

Showing 1 changed file with 18 additions and 0 deletions   Show diff stats
frontend/views/layouts/main.php
... ... @@ -74,6 +74,23 @@
74 74 <meta name="viewport" content="width=device-width, initial-scale=1">
75 75 <?= Html::csrfMetaTags() ?>
76 76 <title><?= Html::encode($seo->title) ?></title>
  77 +
  78 + <!-- Facebook Pixel Code -->
  79 + <script>
  80 + !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  81 + n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
  82 + n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
  83 + t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
  84 + document,'script','https://connect.facebook.net/en_US/fbevents.js');
  85 + fbq('init', '1591060651200152'); // Insert your pixel ID here.
  86 + fbq('track', 'PageView');
  87 + </script>
  88 + <noscript><img height="1" width="1" style="display:none"
  89 + src="https://www.facebook.com/tr?id=1591060651200152&ev=PageView&noscript=1"
  90 + /></noscript>
  91 + <!-- DO NOT MODIFY -->
  92 + <!-- End Facebook Pixel Code -->
  93 +
77 94 <?php $this->head() ?>
78 95 </head>
79 96 <body>
... ... @@ -95,6 +112,7 @@
95 112 ga('send', 'pageview');
96 113  
97 114 </script>
  115 +
98 116 <div id="all">
99 117 <header>
100 118  
... ...