You are here

Facebook Pixel

description

Let's start with the funny part... the Facebook Pixel is not a pixel but a javascript that allows you to retarget users based on their previous visits on your website as well as their behavior on your ecommerce website.

This santianoVendor GTM configuration automatically plugs with all modules and vendors from santiano and is using santianoEcommerce standards as his feeding method.

To setup the Facebook Pixel you just need to change your facebookAccountId

 

setup

Please refer to the container setup instructions

tagging plans

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

Add comment

Download

container dependencies