Rezdy Tracking Script

mail@pastecode.io avatar
unknown
javascript
3 years ago
1.3 kB
1
Indexable
Never
<!-- Global site tag (gtag.js) - Google Ads: 998111666 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-998111666"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-998111666');
</script>

<!-- Event snippet for Purchase conversion page -->
<script>
  gtag('event', 'conversion', {
      'send_to': 'AW-998111666/d7TyCJaT1-IBELLz99sD',
      'value': ###ORDER_TOTAL###,
      'currency': 'AUD',
      'transaction_id': '###ORDER_NUMBER###'
  });
</script>


<!-- 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', '440605746813938');
fbq('track', 'PageView');
</script>
<!-- End Facebook Pixel Code -->

<script>
fbq('track', 'Purchase',{
    value: ###ORDER_TOTAL###,
    currency: 'AUD'
});
</script>