You are here

santianoEcommerce Flat Object

Used by the following Containers: 
santianoEcommerce has a totally flat architecture that facilitates its implementation, covers all Google Analytics Enhanced Ecommerce Tags + other tags needed by other vendors for Ecommerce tracking
	// the santianoEcommerce flat Ecommerce object 
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': '[eventCommand]',
// overview of all supported eventCommand values:
  // [eventCommand] == 'productImpression'-> products are seen on a list
  // [eventCommand] == 'productClick' -> product is clicked from a list
  // [eventCommand] == 'productDetail' -> product page is viewed
  // [eventCommand] == 'cartProductAdded' -> product is added to cart
  // [eventCommand] == 'cartProductRemoved' -> product is removed from cart
  // [eventCommand] == 'cartContent' -> updates the content of the cart
  // [eventCommand] == 'checkoutStep' -> one step of checkout is loaded or executed 
  // [eventCommand] == 'orderConfirmation' -> thank you for your purchase, receipt here
  // [eventCommand] == 'wishlistProductAdded' -> a product is added to the wishlist
  // [eventCommand] == 'wishlistProductRemoved' -> a product is removed from wishlist
  // [eventCommand] == 'wishlistContent' -> the content of the wishlist
  // [eventCommand] == 'orderRefund' -> order is being canceled altogether
  // [eventCommand] == 'productRefund' -> some products are being refunded
  // [eventCommand] == 'promotionImpression' -> impression count
  // [eventCommand] == 'promotionClick' -> click count

// always defined
  'currencyCode': 'EUR', 
  // what currency here ? https://en.wikipedia.org/wiki/ISO_4217

// only when:
  // 'eventCommand' == 'productImpression'
  // 'eventCommand' == 'productClick'
  'productImpressionListName' : '[ListName]', // string
    // name for that list of products

// only when 'eventCommand' == 'checkoutStep'
  'checkoutStepNumber': 1, // Whole positive number
  'checkoutStepName' : '[checkoutStepName]', // string
  'checkoutStepOption': '[checkoutStepOption]', // string
    
// only when 'eventCommand' == orderConfirmation
  'orderID': '1234569-ABCDEFG', // string - the ID of the Order
  'orderRevenue' : '695.00', // floating number - The Revenue of the order
  'orderTax' : '579.17', // floating number - Tax for that order
  'orderShippingCost' : '15.00', // floating number - The Cost of shipping
  'orderShopName' : '[orderShopName]', // string - 
  'orderCoupon' : '[orderCoupon]', //  string - The Coupons used for that order
  // optional order variables:
    // 'orderPaymentPlatform': '[orderPaymentPlatform]', // string - 
    // 'orderPaymentMethod': '[orderPaymentMethod]', // string - 
    // 'orderShippingCountry': '[orderShippingCountry]', // string - 
    // 'orderShippingRegion': '[orderShippingRegion]', // string - 
    // 'orderShippingCity': '[orderShippingCity]', // string - 
    // 'orderShippingPostCode': '[orderShippingPostCode]', // string - 
    // 'orderBillingCountry': '[orderBillingCountry]', // string - 
    // 'orderBillingRegion': '[orderBillingRegion]', // string - 
    // 'orderBillingCity': '[orderBillingCity]', // string - 
    // 'orderBillingPostCode': '[orderBillingPostCode]', // string - 
    // 'orderTimeStamp' : '[orderTimeStamp]', // string - 

// here is the standard ProductList of each individual productObject:
  'productList': [{
      'productName': '[productName]', // string -The unique Name of that product
      'productID': '[productID]', // string- The product unique ID
      'productUnitPrice': '19.99', // floating - the price of that product
      'productCategory1' : '[productCategory1]', // string - 
      'productCategory2' : '[productCategory2]', // string -
      'productCategory3' : '[productCategory3]', // string -
      'productCategory4' : '[productCategory4]', // string -
      'productCategory5' : '[productCategory5]', // string -
      'productBrand': '[productBrand]', // string - Brand of the product
      'productVariant': '[productVariant]', // string - 
      // optional product variables
        // 'productColor': '[productColor]', // string - 
        // 'productSize': '[productSize]', // string - 
        // 'productReleaseDate': 'DD/MM/AAAA', // string - 
        // 'productType': '[productType]', // string - 
        // 'productInSale': false, // boolean - 
        // 'productOriginalPrice': '67.5', // string - 

      // only for the following 'eventCommand':
          // [eventCommand] == 'productImpression'
          // [eventCommand] == 'productClick'
             'productImpressionListPosition': 1, 
                // ON what position is the product on that ListName ?
                //  Starts With 1 always.

      // only for the following 'eventCommand':
          // [eventCommand] == 'cartProductAdded'
          // [eventCommand] == 'cartProductRemoved'
          // [eventCommand] == 'cartContent'
          // [eventCommand] == 'wishlistProductAdded'
          // [eventCommand] == 'wishlistProductRemoved'
          // [eventCommand] == 'wishlistContent'
          // [eventCommand] == 'checkoutStep'
          // [eventCommand] == 'orderConfirmation'
          // [eventCommand] == 'productRefund'
              'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
// Applies for the following 'eventCommand':
    // [eventCommand] == 'promotionImpression'
    // [eventCommand] == 'promotionClick'
  'promotionList': [{
      'promotionName': '[promotionName]',         // string - The Name of that promotion
      'promotionId': '[promotionId]',             // string - The Id of that promotion
      'promotionCreative': '[promotionCreative]', // string - name of the creative
      'promotionPosition' : '[promotionPosition]' // string - name of the position for that creative
      
  },
  {
       // and so on if there are multiple promotions displayed or clicked
  }]
});