Untitled

mail@pastecode.io avatar
unknown
html
2 years ago
2.5 kB
68
Indexable
Never
<!-- Needs to fire on every page possible in the user journey -->

<script async src="https://www.googletagmanager.com/gtag/js?id=AW-948352160"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'AW-948352160');
</script>
<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', '484953785643270');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=484953785643270&ev=PageView&noscript=1"
/></noscript>


<!-- Needs to fire on checkout success, 
with the REPLACE_ME_WITH_ORDER_SUBTOTAL_INTEGER value replaced with a dynamic variable to report the order subtotal value
And the REPLACE_ME_WITH_ORDER_TRANSACTION_ID_STRING value replaced with a dynamic variable to report the unique order ID
-->

<script async src="https://www.googletagmanager.com/gtag/js?id=AW-948352160"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'AW-948352160');
  gtag('event', 'conversion', {
      'send_to': 'AW-948352160/AFEsCJukiJADEKDpmsQD-1tfYD',
      'value': REPLACE_ME_WITH_ORDER_SUBTOTAL_INTEGER,
      'currency': 'USD',
      'transaction_id': 'REPLACE_ME_WITH_ORDER_TRANSACTION_ID_STRING'
  });
</script>
<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', '484953785643270');
fbq('track', 'PageView');
fbq('track', 'Purchase', {currency: "USD", value: REPLACE_ME_WITH_ORDER_SUBTOTAL_INTEGER });
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=484953785643270&ev=PageView&noscript=1"
/></noscript>