Skip to content

Instantly share code, notes, and snippets.

@marcusRB
Created October 14, 2018 16:04
Show Gist options
  • Save marcusRB/b9887a3007f3c80e041dcc436a5ad7b8 to your computer and use it in GitHub Desktop.
Save marcusRB/b9887a3007f3c80e041dcc436a5ad7b8 to your computer and use it in GitHub Desktop.
InitiateCheckout as ViewContent for Google Tag Manager
/* InitiateCheckout as ViewContent for Google Tag Manager - Update 10.2018 MR//PD
Trigger: when Step 1 loaded or Step 2 initiate, extract checkout value from dataLayer
Remember: Set Tag Sequencing load before main pageView FBads tag
*/
<script>
fbq('track', 'InitiateCheckout', {
value: {{cJS - EEC - checkoutValue}}, //as FLOAT
currency: 'EUR',
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment