To track impressions, you can use a tracking pixel code. They’re typically received from a third party, in the form of a URL. The code makes a server call, and returns a transparent 1x1 pixel.
You can apply tracking pixels for a MoonBack page and the reply page. The tracking pixel will be embedded in the source page, so you will have all analytics available.
Some of the tracking pixel service we support are:
- Google Tag Manager (https://tagmanager.google.com/?hl=es)
- Facebook Pixel (https://www.facebook.com/business/help/742478679120153?id=1205376682832142)
- Google Analytics (https://analytics.google.com/analytics/web/)
- Comscore (https://direct.comscore.com/)
Please, request any other service you would like to have ;-)
Google Tag Manager
You will find the snippet to paste in your Google Tag Manager account. It looks like this one. Please find the code number instead of the "XXXXXXXXXXX" and paste it in your MoonBack integrations page .
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-<?=$preferences["tracking_gtm"]?>');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
Facebook Pixel
You will find the snippet to paste in your Facebook account. It looks like this one. Please find the code number instead of the "XXXXXXXXXXX" and paste it in your MoonBack integrations page .
<!-- 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', '<?=$preferences["tracking_fb"]?>');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=XXXXXXXXXXX&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
Google Analytics
You will find the snippet to paste in your Google Analytics account. It looks like this one. Please find the code number instead of the "XXXXXXXXXXX" and paste it in your MoonBack integrations page .
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXXXXXX', 'auto');
ga('send', 'pageview');
</script>