mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-31 01:11:25 +00:00
add facebook tracking code
This commit is contained in:
parent
c2d3d11ce3
commit
11ab481531
2 changed files with 15 additions and 0 deletions
14
view/analytics/subFacebook.php
Normal file
14
view/analytics/subFacebook.php
Normal 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-->
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue