roshanoracle
9/14/2016 - 2:33 PM

Data Layer : HBO Nordic : Sign-up Complete (data layer spec)

Data Layer : HBO Nordic : Sign-up Complete (data layer spec)

dataLayer.push({
  'ecommerce': {
    'purchase': {
      'actionField': {
        'id': transaction_id,
        'affiliation': '',
        'revenue': subscription_cost_for_one_month,
        'tax': '',
        'shipping': '',
        'coupon': voucher_code //not implemented yet!
      },
      'products': [{
        'name': 'HBON [COUNTRY] monthly subscription',
        'id': product_id,
        'price': subscription_cost_for_one_month,
        'brand': '',
        'category': '',
        'variant': '',
        'quantity': 1,
      }, ]
    }
  }
});