Advertisement
Guest User

Untitled

a guest
May 23rd, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. window.dataLayer = window.dataLayer || [];
  3. window.dataLayer.push({
  4.             'ecommerce': {
  5.             'purchase': {
  6.                 'actionField': {
  7.                     'id': '58418',
  8.                     'affiliation': 'company name',
  9.                     'revenue': '1750.00',
  10.                     'tax': '339.00',
  11.                     'shipping': '0'
  12.                 },
  13.                 'products':
  14.                 [
  15.                 // List of productFieldObjects.
  16.  
  17.                     {
  18.                     'name': 'prod1',
  19.                     'id': 'productsku1',
  20.                     'price': '1590.00',
  21.                     'brand': 'company name',
  22.                     'quantity': 1
  23.                 }
  24.  
  25. ,
  26.  
  27.                     {
  28.                         'name': 'prod2',
  29.                         'id': 'productsku2',
  30.                         'price': '190.00',
  31.                         'brand': 'company name',
  32.                         'quantity': 1
  33.                     }
  34.  
  35. ,
  36.  
  37.                     {
  38.                         'name': 'prod3',
  39.                         'id': 'productsku3',
  40.                         'price': '250.00',
  41.                         'brand': 'company name',
  42.                         'quantity': 1
  43.                     }
  44.  
  45. ,
  46.  
  47.                     {
  48.                         'name': 'freight',
  49.                         'id': 'productsku4',
  50.                         'price': '120.00',
  51.                         'brand': 'company name',
  52.                         'quantity': 1
  53.                     }
  54.  
  55.                 ]
  56.             }
  57.         }
  58. });
  59. </script>
  60. </head>
  61. <body>
  62. <!-- Google Tag Manager -->
  63. <redacted>
  64. <!-- End Google Tag Manager -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement