Skip to content

Instantly share code, notes, and snippets.

@pierre-b
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save pierre-b/8843417 to your computer and use it in GitHub Desktop.

Select an option

Save pierre-b/8843417 to your computer and use it in GitHub Desktop.

Revisions

  1. pierre-b revised this gist Feb 6, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions GTM affilae variables
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    <script>
    // MUST BE PLACED BEFORE THE GOOGLE TAG MANAGER SCRIPT
    // push conversion's data into Google Tag Manager
    dataLayer = [{
    'affilae.ruleKey': 'xxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx',
  2. pierre-b created this gist Feb 6, 2014.
    10 changes: 10 additions & 0 deletions GTM affilae variables
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <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>