Skip to content

Instantly share code, notes, and snippets.

@pierre-b
Last active August 29, 2015 13:56
Show Gist options
  • Save pierre-b/8843417 to your computer and use it in GitHub Desktop.
Save pierre-b/8843417 to your computer and use it in GitHub Desktop.
Example of Affilae's tracking variables
<script>
// MUST BE PLACED BEFORE THE GOOGLE TAG MANAGER SCRIPT
// push conversion's data into Google Tag Manager
dataLayer = [{
'affilae.ruleKey': 'xxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx',
'affilae.conversionId': '123',
'affilae.customerId': '123',
'affilae.amount': '100.5',
'affilae.payment': 'online' // online | bankwire | cheque | other
}];
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment