How can we help?

PrestaShop dataLayer

stape
stape
  • Updated

Below you can see the list of dataLayer events and their payload that the PrestaShop module generates. The dataLayer events are part of PrestaShop module configuration - check the detailed guide on how to set up the module in our article.

View item

   event: "view_item_stape",
  ecomm_pagetype: "product",
  user_data: {
     email: "test@stape.io",
      first_name: "Stape",
      last_name: "Stape",
      customer_id: "69"
  },
  ecommerce: {
      currency: "UAH",
      value: "15.48",
      items: [
          {
              item_name: "Mountain fox notebook",
              item_id: "16",
              item_sku: "demo_8",
              item_brand: null,
              item_category: "Stationery",
              price: "15.48"
          }
      ]
  },

 

View collection

   event: "view_collection_stape",
  ecomm_pagetype: "category",
  user_data: {
      email: "test@stape.io",
      first_name: "Stape",
      last_name: "Stape",
      customer_id: "69"
  },
  ecommerce: {
      currency: "UAH",
      item_list_name: "Stationery",
      items: [
          {
              item_name: "Mountain fox notebook",
              item_id: "16",
              item_sku: "demo_8",
              item_variant: "28",
              item_category: "Stationery",
              price: "15.48",
              index: 0
          },
          {
              item_name: "Brown bear notebook",
              item_id: "17",
              item_sku: "demo_9",
              item_variant: "32",
              item_category: "Stationery",
              price: "15.48",
              index: 1
          },
          {
              item_name: "Hummingbird notebook",
              item_id: "18",
              item_sku: "demo_10",
              item_variant: "36",
              item_category: "Stationery",
              price: "15.48",
              index: 2
          }
      ]
  },

 

Add to cart

   event: "add_to_cart_stape",
ecomm_pagetype: "product",
user_data: {
    email: "test@stape.io",
    first_name: "Stape",
    last_name: "Stape",
    customer_id: "69"
},
  ecommerce: {
      currency: "UAH",
      value: "15.48",
      items: [
          {
              item_name: "Mountain fox notebook",
              item_id: "16",
              item_sku: "demo_8",
              item_variant: "28",
              item_category: "stationery",
              price: "15.48",
              quantity: "1"
          }
      ]
  },

 

Remove from cart

   event: "remove_from_cart_stape",
ecomm_pagetype: "product",
user_data: {
    email: "test@stape.io",
    first_name: "Stape",
    last_name: "Stape",
    customer_id: "69"
},
  ecommerce: {
      currency: "UAH",
      value: "15.48",
      items: [
          {
              item_name: "Mountain fox notebook",
              item_id: "16",
              item_sku: "demo_8",
              item_variant: "28",
              item_category: "Stationery",
              price: "15.48",
              quantity: "1"
          }
      ]
  },


View cart

   event: "view_cart_stape",
  ecomm_pagetype: "basket",
  cart_quantity: "1",
  cart_total: "15.48",
  user_data: {
      email: "test@stape.io",
      first_name: "Stape",
      last_name: "Stape",
      customer_id: "69"
  },
  ecommerce: {
      currency: "UAH",
      value: "15.48",
      items: [
          {
              item_name: "Mountain fox notebook",
              item_id: "16",
              item_sku: "demo_8",
              item_variant: "28",
              item_category: "stationery",
              price: "15.48",
              quantity: "1"
          }
      ]
  },

 

Begin checkout 

   event: "begin_checkout_stape",
ecomm_pagetype: "basket",
user_data: {
    email: "test@stape.io",
  first_name: "Stape",
  last_name: "Stape",
  customer_id: "69"
},
ecommerce: {
  cart_total: "34.46",
  cart_quantity: "1",
  currency: "UAH",
  value: "34.46",
  items: [
    {
    item_name: "Hummingbird printed sweater",
     item_id: "2",
     item_sku: "demo_3",
      item_variant: "9",
      item_brand: "Studio Design",
    item_category: "women",
    price: "34.46",
    quantity: "1"
    }
  ]
},

 

Add shipping info 

   event: "add_shipping_info_stape",
ecomm_pagetype: "basket",
user_data: {
    email: "test@stape.io",
    first_name: "Stape",
    last_name: "Stape",
    customer_id: "69",
    phone: "+1234567890",
    country: "Ukraine",
    region: "0",
    street: "69 street 69 house",
    city: "Kyiv",
    zip: "696969"
},
  ecommerce: {
      cart_total: "14.28",
      cart_quantity: "1",
      currency: "UAH",
      value: "14.28",
      items: [
          {
              item_name: "Mug The best is yet to come",
              item_id: "6",
              item_sku: "demo_11",
              item_variant: "0",
              item_brand: "Studio Design",
              item_category: "home-accessories",
              price: "14.28",
              quantity: "1"
          }
      ]
  },

 

Add payment info

   event: "add_payment_info_stape",
  ecomm_pagetype: "basket",
  user_data: {
      email: "test@stape.io",
      first_name: "Stape",
      last_name: "Stape",
      customer_id: "69",
      phone: "+1234567890",
      country: "Ukraine",
      region: "0",
      street: "69 street 69 house",
      city: "Kyiv",
      zip: "696969"
  },
  ecommerce: {
      cart_total: "14.28",
      cart_quantity: "1",
      currency: "UAH",
      value: "14.28",
      items: [
          {
              item_name: "Mug The best is yet to come",
              item_id: "6",
              item_sku: "demo_11",
              item_variant: "0",
              item_brand: "Studio Design",
              item_category: "home-accessories",
              price: "14.28",
              quantity: "1"
          }
      ]
  },

 

Purchase

   event: "purchase_stape",
  ecomm_pagetype: "purchase",
  user_data: {
      email: "test@stape.io",
      first_name: "Stape",
      last_name: "Stape",
      customer_id: "69",
      phone: "+1234567890",
      country: "Ukraine",
      region: "0",
      street: "69 street 69 house",
      city: "Kyiv",
      zip: "696969",
      customer_lifetime_spent: "0",
      new_customer: "true"
  },
  ecommerce: {
      transaction_id: "26",
      affiliation: "Michael Test Dev",
      value: "14.28",
      tax: "2.38",
      shipping: "0.00",
      sub_total: "14.28",
      discount_amount: "0.00",
      currency: "UAH",
      items: [
          {
              item_name: "Mug The best is yet to come",
              item_id: "6",
              item_sku: "demo_11",
              item_variant: "0",
              item_brand: "Studio Design",
              item_category: "home-accessories",
              price: "14.28",
              quantity: "1"
          }
      ]
  },

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.