Advertisement
AwMinsait

RM Madridistas - Transaction Amazon

Feb 25th, 2020
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. // Send transaction data with a pageview if available
  3. // when the page loads. Otherwise, use an event when the transaction
  4. // data becomes available.
  5. dataLayer.push({
  6.   'ecommerce': {
  7.     'purchase': {
  8.       'actionField': {
  9.         'id': 'T12345',                         // Dinamico - Transaction ID. Required for purchases and refunds.
  10.         'affiliation': 'Madridistas',           // Estático
  11.         'revenue': '35.00',                     // Dinamico - Total transaction value (incl. tax and shipping)
  12.         'coupon': 'Amazon'                      // Dinamico - Forma de pago tarjeta, transferencia, paypal, amazon...
  13.       },
  14.       'products': [{                            // List of productFieldObjects.
  15.         'name': 'Madridista nacional senior',     // Dinamico - Nombre de producto.
  16.         'id': '12345',                          // Dinamico - Id de producto
  17.         'price': '35.00',                       // Dinamico - Precio
  18.         'brand': 'Real Madrid',                 // Estático es la linea de negocio
  19.         'category': 'Carnet Madridista',
  20.         'variant': 'Nacional',                 // Dinamico Nacional o Internacional
  21.         'quantity': 1,                        
  22.        
  23.        }]
  24.     }
  25.   }
  26. });
  27. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement