SharedStake / SharedStake-ui

SharedStake User Interface using vue.js
https://www.sharedstake.org/
GNU General Public License v3.0
15 stars 15 forks source link

Add Facebook Pixel code to the website #110

Open ssmangoeater opened 3 years ago

ssmangoeater commented 3 years ago

Please add the following base code into the bottom of the header so we can track our "Swipe up to stake" ad conversions. Add it to every page. Thank you.

<!-- 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',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '321744419684000');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=321744419684000&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
Screen Shot 2021-06-09 at 12 09 52 PM
ssmangoeater commented 3 years ago

@0knxwledge @exitonoff @sharedStake-dev

exitonoff commented 3 years ago

https://github.com/SharedStake/SharedStake-ui/pull/111.

ssmangoeater commented 3 years ago

The code needs to be changed. Please change it to this. Make sure it's on every page of the website. Thanks @exitonoff

<!-- 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',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1126681497816633');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1126681497816633&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
exitonoff commented 3 years ago

https://github.com/SharedStake/SharedStake-ui/pull/113.