add facebook tracking code

This commit is contained in:
kauffj 2015-12-21 15:00:25 -05:00
parent c2d3d11ce3
commit 11ab481531
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '1618717031725766');
fbq('track', "Lead");</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1618717031725766&ev=PageView&noscript=1"
/></noscript>
<!--End Facebook Pixel Code-->

View file

@ -8,6 +8,7 @@
<div class="notice notice-error spacer1"><?php echo $error ?></div>
<?php elseif ($success): ?>
<?php echo View::render('analytics/subTwitter') ?>
<?php echo View::render('analytics/subFacebook') ?>
<div class="notice notice-success spacer1"><?php echo $success ?></div>
<?php endif ?>
<div class="mail-submit">