You are here

santianoEcommerce

description

santianoEcommerce has a totally flat variable structure and is not vendor specific. It allows for extensive and personnalised tracking of any ecommerce behavior. Its flat structure is simple to implement and maintain by IT teams and GTM admins will love the built in triggers and variables ;)

setup

Please refer to the container setup instructions

tagging plans

santianoEcommerce Flat Object

santianoEcommerce Flat Object
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
  }]
});
close
productImpression

productImpression
On the category pages listing your products

  // the santianoEcommerce in case of a productImpression
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'productImpression',
    'currencyCode': 'EUR', 
    // what currency here ? https://en.wikipedia.org/wiki/ISO_4217

    'productImpressionListName' : '[ListName]', // string
    // name for that list of products

// 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 - 
   
        'productImpressionListPosition': 1, 
                  // ON what position is the product on that ListName ?
                  //  Starts With 1 always.

  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
productClick

productClick
Anytime a user clicks on a link pointing to a product detail page

  // the santianoEcommerce in case of a productClick
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'productClick',
// 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

// 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 - 
 
      // only for the following 'eventCommand':
          // [eventCommand] == 'productImpression'
          // [eventCommand] == 'productClick'
            'productImpressionListPosition': 1, 
      // ON what position is the product clicked on that ListName ?

  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
productDetail

productDetail
To record impressions of detail pages

  <script>
// the santianoEcommerce in case of a productDetail
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'productDetail',
// always defined
    'currencyCode': 'EUR', 
  // what currency here ? https://en.wikipedia.org/wiki/ISO_4217

// 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 - 
   
  },
  {
       // and so on if there are multiple products.
  }]
  
});
</script>
close
cartProductAdded

cartProductAdded
When one or more products are added to cart

  // the santianoEcommerce in case of a cartProductAdded
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'cartProductAdded',
// always defined
    'currencyCode': 'EUR', 
  // what currency here ? https://en.wikipedia.org/wiki/ISO_4217

// 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 - 

         // added quantity
         'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
cartProductRemoved

cartProductRemoved
When a product is removed from cart

  // the santianoEcommerce in case of a cartProductRemoved
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'cartProductRemoved',
// always defined
    'currencyCode': 'EUR', 
  // what currency here ? https://en.wikipedia.org/wiki/ISO_4217

// 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 - 

         // how many of that product is removed ?
              'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
cartContent

cartContent
Updates the full content of the cart

  // the santianoEcommerce in case of a cartContent
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'cartContent',
// always defined
    'currencyCode': 'EUR', 
  // what currency here ? https://en.wikipedia.org/wiki/ISO_4217

// 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 - 

        // how many of that product in the content of that cart ?
        'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
checkoutStep

checkoutStep
For every numbered and named step of your checkout funnel

  // the santianoEcommerce in case of a checkoutStep
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'checkoutStep',
    'currencyCode': 'EUR', 

  // checkout steps specific variables
    'checkoutStepNumber': 1, // Whole positive number, starts with 1
    'checkoutStepName' : '[checkoutStepName]', // string
    'checkoutStepOption': '[checkoutStepOption]', // 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 - 

        // how many products are in the cart at that moment ???
        'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
orderConfirmation

orderConfirmation
The favorite moment !!! The Full Receipt of the order with its orderVariables and the full content of the products purchased.

  // the santianoEcommerce in case of a orderConfirmation
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'orderConfirmation',
    'currencyCode': 'EUR', 

  // orderConfirmation specific variables
    '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

// 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 - 

        // how many products are puchased ???
        'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
orderRefund

orderRefund
When a full order is returned or canceled.

  // the santianoEcommerce in case of a orderRefund
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'orderRefund',

  // the order that is cancelled
    'orderID': '1234569-ABCDEFG' // string - the ID of the Order
  
});
close
productRefund

productRefund
To return some products from one particular orderId

  // the santianoEcommerce in case of a productRefund
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'productRefund',

  // the order related
    'orderID': '1234569-ABCDEFG', // string - the ID of the Order
    
// products being returned
    'productList': [{
        'productID': '[productID]', // string- The product unique ID
        'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
wishlistProductAdded

wishlistProductAdded
to record products added to the wishlist #myWishListThatGoogleAnalyticsIntegratesThatOneDay

  // the santianoEcommerce in case of a wishlistProductAdded
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'wishlistProductAdded',
// always defined
    'currencyCode': 'EUR', 
  // what currency here ? https://en.wikipedia.org/wiki/ISO_4217

// 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 - 

        // how many products are added to the wishlist
        'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
wishlistProductRemoved

wishlistProductRemoved
When a product is removed from the wishlist

  // the santianoEcommerce in case of a wishlistProductRemoved
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'wishlistProductRemoved',
// always defined
    'currencyCode': 'EUR', 
  // what currency here ? https://en.wikipedia.org/wiki/ISO_4217

// 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 - 

        // how many products are removed from the wishlist
        'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
wishlistContent

wishlistContent
Updates the content of the wishlist

  // the santianoEcommerce in case of a wishlistContent
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'wishlistContent',
// always defined
    'currencyCode': 'EUR', 
  // what currency here ? https://en.wikipedia.org/wiki/ISO_4217

// 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 - 

        // how many products are in the wishlist ???
        'productQuantity': 1 // The quantity of product
  },
  {
       // and so on if there are multiple products.
  }]
  
});
close
promotionImpression

promotionImpression
Records the impression of a promotion, banner ad internal to your website.

  // example for promotion impressions
dataLayer.push({
    'event': 'santianoEcommerce',
    'eventCommand': 'promotionImpression',

    '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
  }]
});
</script>
close
promotionClick

promotionClick
Records the clicks on promotions

  // example for a promotionClick
dataLayer.push({
    'event': 'santianoEcommerce',
    '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
  }]
});
close

gtm triggers

Event - santianoEcommerce - All

Event - santianoEcommerce - All
Trigger Type : Custom Event

Event name equals santianoEcommerce This trigger fires on All Custom Events

close
Event - santianoEcommerce - cartContent

Event - santianoEcommerce - cartContent
Trigger Type : Custom Event
When I get the content of the cart
event Name equals santianoEcommerce eventCommand equals cartContent

close
Event - santianoEcommerce - cartProductAdded

Event - santianoEcommerce - cartProductAdded
Trigger Type : Custom Event
When a product is added to cart
Event name equals santianoEcommerce eventCommand equals cartProductAdded

close
Event - santianoEcommerce - cartProductRemoved

Event - santianoEcommerce - cartProductRemoved
Trigger Type : Custom Event
When a product is removed from cart
Event name = santianoEcommerce eventCommand equals cartProductRemoved

close
Event - santianoEcommerce - checkoutStep

Event - santianoEcommerce - checkoutStep
Trigger Type : Custom Event
For every step checkout
Event name equals santianoEcommerce

close
Event - santianoEcommerce - orderConfirmation

Event - santianoEcommerce - orderConfirmation
Trigger Type : Custom Event
Thank you for your order
Event name equals santianoEcommerce eventCommand equals orderConfirmation

close
Event - santianoEcommerce - orderRefund

Event - santianoEcommerce - orderRefund
Trigger Type : Custom Event
When order returns
Event name equals santianoEcommerce eventCommand equals orderRefund

close
Event - santianoEcommerce - productClick

Event - santianoEcommerce - productClick
Trigger Type : Custom Event
When a product is clicked
Event Name equals santianoEcommerce eventCommand equals productClick

close
Event - santianoEcommerce - productDetail

Event - santianoEcommerce - productDetail
Trigger Type : Custom Event
When a product page is seen
Event name equals santianoEcommerce eventCommand equals productDetail

close
Event - santianoEcommerce - productImpression

Event - santianoEcommerce - productImpression
Trigger Type : Custom Event
When products are seen on a list of products
Event name equals santianoEcommerce eventCommand equals productImpression

close
Event - santianoEcommerce - productRefund

Event - santianoEcommerce - productRefund
Trigger Type : Custom Event
When some products returns from one particular order
Event name equals santianoEcommerce eventCommand equals productRefund

close
Event - santianoEcommerce - promotionClick

Event - santianoEcommerce - promotionClick
Trigger Type : Custom Event
When a click on an ad or banner occurs
Event name equals santianoEcommerce eventCommand equals promotionClick

close
Event - santianoEcommerce - promotionImpression

Event - santianoEcommerce - promotionImpression
Trigger Type : Custom Event
When Promotions or banners are displayed
Event name equals santianoEcommerce eventCommand equals promotionImpression

close
Event - santianoEcommerce - wishlistContent

Event - santianoEcommerce - wishlistContent
Trigger Type : Custom Event
When the Wishlist content gets updated
Event name equals santianoEcommerce eventCommand equals wishlistContent

close
Event - santianoEcommerce - wishlistProductAdded

Event - santianoEcommerce - wishlistProductAdded
Trigger Type : Custom Event
When a product is added to the wishlist
Event name equals santianoEcommerce eventCommand equals wishlistProductAdded

close
Event - santianoEcommerce - wishlistProductRemoved

Event - santianoEcommerce - wishlistProductRemoved
Trigger Type : Custom Event
When a product is removed ftom the wishlist
Event name equals santianoEcommerce eventCommand equals wishlistProductRemoved

close

gtm variables

checkoutStepName

checkoutStepName
Variable Type : Data Layer Variable
Name of the checkout step being displayed or validated

  Data Layer Variable Name : checkoutStepName
Data Layer Version : Version 2
close
checkoutStepNumber

checkoutStepNumber
Variable Type : Data Layer Variable
Number of the cjeckout step, always starts with 1

  Data Layer Variable Name : checkoutStepNumber
Data Layer Versison : Version 2

close
checkoutStepOption

checkoutStepOption
Variable Type : Data Layer Variable
Specific option for that checkout step

  Data Layer Variable Name : checkoutStepOption
Data Layer Version Version 2

close
currencyCode

currencyCode
Variable Type : Data Layer Variable
Currency code... 'EUR' , 'USD' , ...

  Data Layer Variable Name  currencyCode
Data Layer Version : Version 2
close
eventCommand

eventCommand
Variable Type : Data Layer Variable
santiano.io comes with its specific eventCommand : its naming scheme facilitates management and maintenance of events tags and ecommerce tags.

  Data Layer Variable Name  : eventCommand 
Data Layer Version : Version 2
close
orderConfirmationCheckSum

orderConfirmationCheckSum
Variable Type : Custom Javascript
Verifies that orderRevenue = orderTax + orderShippingCost + (sum of productQuantity * productUnitPrice )

  function() {
 var eventCommand = {{eventCommand}};
 if( eventCommand == 'orderConfirmation') {
   var productList = {{productList}};
   var productListLength = {{productListLength}};
   var productListSumValue = 0;
   var i;
   for ( i = 0; i < productListLength; i++ ) {
     productListSumValue = productListSumValue + (productList[i].productUnitPrice * productList[i].productQuantity);
   }
   var orderRevenue = {{orderRevenue}};
   var orderTax = {{orderTax}};
   var orderShippingCost = {{orderShippingCost}};

// Calculates and should expect a 0 as the Checksum
   var transactionCheckSum = orderRevenue - orderTax - orderShippingCost - productListSumValue
		
    } else {
    	return 'no order here'
    }
}
close
orderCoupon

orderCoupon
Variable Type : Data Layer Variable
the promo code or coupons used for that order

  Data Layer Variable Name : orderCoupon
Data Layer Version : Version 2
close
orderId

orderId
Variable Type : Data Layer Variable

  Data Layer Variable Name : orderId
Data Layer Version : Version 2
close
orderRevenue

orderRevenue
Variable Type : Data Layer Variable
Revenue of that order

  Data Layer Variable Name : orderRevenue
Data Layer Version Version : Version 2
close
orderShippingCost

orderShippingCost
Variable Type : Data Layer Variable

  Data Layer Variable Name : orderShippingCost
Data Layer Version : Version 2

close
orderShopName

orderShopName
Variable Type : Data Layer Variable
Name of the Shop

  Data Layer Variable Name : orderShopName
Data Layer Version : Version 2
close
orderTax

orderTax
Variable Type : Data Layer Variable
Tax for that order

  Data Layer Variable Name : orderTax
Data Layer Version : Version 2
close
productImpressionListName

productImpressionListName
Variable Type : Data Layer Variable
Name of the list showing all these great products

  Data Layer Variable Name : productImpressionListName
Data Layer Version : Version 2
close
productList

productList
Variable Type : Data Layer Variable
One of the most important variable of all santianoEcommerce. The productList is an array of productObjects used along all ecommerce events happening on an ecommerce platform.

  Data Layer Variable Name : productList
Data Layer Version : Version 1 !!!!!! Yes version 1

close
productListIds

productListIds
Variable Type : Custom Javascript
Grabs the ProductList object and makes a list of productId :)

  // Creates a list of ProductIDs in the productList Object
// such as ['256', '15987', '9587']
function() {
  var products = {{productList}};
  var productListNbDistinctProducts = {{productListLength}};
  var productListIds = []; 

  for ( var i = 0; i < productListNbDistinctProducts; i++ ) {
    productListIds.push(productList[i].productId);
  }
  return productListIds;
}
close
productListLength

productListLength
Variable Type : Custom Javascript
Tells us how many distincts products are in the productList

  // returns the number of distinct products in the productList Object
function() {
var productList = {{productList}};
  if (productList === undefined) {
      return 0;
  } else  if (productList === "") {
      return 0;
  } else if (productList === []) {
      return 0;
  } else {
      return productList.length
  }
}
close
productListSumValue

productListSumValue
Variable Type : Custom Javascript
Calculates the sum of added productQuantity and ProductUnitPrice

  function() {
   var productList = {{productList}};
   var productListLength = {{productListLength}};
   var productListSumValue = 0;
   var i;
   for ( i = 0; i < productListLength; i++ ) {
     productListSumValue = productListSumValue + (productList[i].productUnitPrice * productList[i].productQuantity);
   }
   return productListSumValue;
}
close
promotionList

promotionList
Variable Type : Data Layer Variable
Array listing the promotions displayed or clicked

  Data Layer Variable Name : promotionList
Data Layer Version : Version 1 !!!!
close
promotionListLength

promotionListLength
Variable Type : Custom Javascript

  // returns the number of distinct products in the productList Object
function() {
var promotionList = {{promotionList}};
  if (promotionList === undefined) {
      return 0;
  } else  if (promotionList === "") {
      return 0;
  } else if (promotionList === []) {
      return 0;
  } else {
      return promotionList.length
  }
}
close
santianoApacheV2.0Licence

santianoApacheV2.0Licence
Variable Type : Custom Javascript

    function() {
  // santiano.io is released under Apache V2.0 licence.
  // 
  // Copyright 2018 Santiano Consulting SAS (santiano.io)
  // 
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  // 
  // http://www.apache.org/licenses/LICENSE-2.0
  // 
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
    return 'santiano.io is released under Apache V2.0 licence';
  }
close

Add comment

Download

	Ecommerce Madness
- flat ecommerce object

"€€€€"

santianoEcommerce
->"productImpression"
->"productClick"
->"productDetail"
->"cartProductAdded"
->"cartProductRemoved"
->"cartContent"
->"checkoutStep"
->"orderConfirmation"
->"wishlistProductAdded"
->"wishlistProductRemoved"
->"wishlistContent"
->"orderRefund"
->"productRefund"
->"promotionImpression"
->"promotionClick"