How can we help?

Shopify App dataLayer

Ivanna
Ivanna
  • Updated

Below is the list of data layer events and their payload that Stape Shopify App generates:

View collection

    event: "view_collection_stape",
ecomm_pagetype: "category",
ecommerce: {
collection_id: "12345678",
currency: "USD",
item_list_name: "Products",
items: [
{
imageURL: "//gtm-test-store-10.myshopify.com/cdn/shop/files/gift_card.png?v=1714570180",
index: 1,
item_brand: "Snowboard Vendor",
item_category: "Gifts",
item_id: "8404872757547",
item_name: "Gift Card",
item_sku: "SKU-123478",
item_variant: "45556788429099",
price: 10.00,
variant_name: "$10"
},
{
imageURL: "//gtm-test-store-10.myshopify.com/cdn/shop/files/snowboard_wax.png?v=1714570184",
index: 2,
item_brand: "GTM-test-store-10",
item_category: "Gifts",
item_id: "9143900537115",
item_name: "Selling Plans Ski Wax",
item_sku: "SKU-1237658",
item_variant: "48564641825051",
price: 24.95,
variant_name: "Selling Plans Ski Wax"
},
]
}
user_data: {
city: "Kyiv",
country: "UA",
customer_id: "12349878",
email: "test@stape.io",
first_name: "Stape",
last_name: "Stape",
phone: "+3801234567",
region: "Kyiv",
street: "Khreshatyk",
zip: "10000"
}

View item

    event: "view_item_stape",
ecomm_pagetype: "category",
ecommerce: {
currency: "USD",
value: "600",
items: [
{
imageURL: "//gtm-test-store-10.myshopify.com/cdn/shop/files/Main_0a40b01b-5021-48c1-80d1-aa8ab4876d3d.jpg?v=1714570180",
item_brand: "Hydrogen Vendor",
item_category: "Gifts",
item_id: "9143899914523",
item_name: "The Collection Snowboard: Hydrogen",
item_sku: "SKU-76543281",
item_variant: "485646409345615",
price: 600,
quantity: "1",
variant_name: "Default Title"
}
]
}
user_data: {
city: "Kyiv",
country: "UA",
customer_id: "12349878",
email: "test@stape.io",
first_name: "Stape",
last_name: "Stape",
phone: "+3801234567",
region: "Kyiv",
street: "Khreshatyk",
zip: "10000"
}

Add to cart


event: "add_to_cart_stape",
ecomm_pagetype: "product",
ecommerce: {
currency: "USD",
value: "600",
items: [
{
imageURL: "//gtm-test-store-10.myshopify.com/cdn/shop/files/Main_0a40b01b-5021-48c1-80d1-aa8ab4876d3d.jpg?v=1714570180",
item_brand: "Hydrogen Vendor",
item_category: "Gifts",
item_id: "9143899914523",
item_name: "The Collection Snowboard: Hydrogen",
item_sku: "SKU-76543281",
item_variant: "485646409345615",
price: 600,
quantity: "1",
variant_name: "Default Title"
}
]
}
user_data: {
city: "Kyiv",
country: "UA",
customer_id: "12349878",
email: "test@stape.io",
first_name: "Stape",
last_name: "Stape",
phone: "+3801234567",
region: "Kyiv",
street: "Khreshatyk",
zip: "10000"
}

Begin checkout

    event:"begin_checkout_stape",
ecomm_pagetype: "product",
ecommerce:{
cart_total: "600",
value: "600",
currency: "USD",
cart_quantity: 1,
items:[
{
imageURL: "//gtm-test-store-10.myshopify.com/cdn/shop/files/Main_0a40b01b-5021-48c1-80d1-aa8ab4876d3d.jpg?v=1714570180",
item_brand: "Hydrogen Vendor",
item_category: "Gifts",
item_id: "9143899914523",
item_name: "The Collection Snowboard: Hydrogen",
item_sku: "SKU-76543281",
item_variant: "485646409345615",
price: 600,
quantity: "1",
variant_name: "Default Title"
}
]
}
user_data: {
city: "Kyiv",
country: "UA",
customer_id: "12349878",
email: "test@stape.io",
first_name: "Stape",
last_name: "Stape",
phone: "+3801234567",
region: "Kyiv",
street: "Khreshatyk",
zip: "10000"
}

View cart

     event: "view_cart_stape",
ecommerce: {
cart_total: 749.95,
currency: "USD",
cart_quantity: 1,
value: "600",
items: [
{
imageURL: "//gtm-test-store-10.myshopify.com/cdn/shop/files/Main_0a40b01b-5021-48c1-80d1-aa8ab4876d3d.jpg?v=1714570180",
item_brand: "Hydrogen Vendor",
item_category: "Gifts",
item_id: "9143899914523",
item_name: "The Collection Snowboard: Hydrogen",
item_sku: "SKU-76543281",
item_variant: "485646409345615",
price: 600,
quantity: "1",
variant_name: "Default Title"
}
]
}
user_data: {
city: "Kyiv",
country: "UA",
customer_id: "12349878",
email: "test@stape.io",
first_name: "Stape",
last_name: "Stape",
phone: "+3801234567",
region: "Kyiv",
street: "Khreshatyk",
zip: "10000"
}

Add payment info

     event: "add_payment_info_stape",
ecomm_pagetype: "basket",
ecommerce:{
cart_total: "600",
value: "600",
currency: "USD",
cart_quantity: 1,
items:[
{
imageURL: "//gtm-test-store-10.myshopify.com/cdn/shop/files/Main_0a40b01b-5021-48c1-80d1-aa8ab4876d3d.jpg?v=1714570180",
item_brand: "Hydrogen Vendor",
item_category: "Gifts",
item_id: "9143899914523",
item_name: "The Collection Snowboard: Hydrogen",
item_sku: "SKU-76543281",
item_variant: "485646409345615",
price: 600,
quantity: "1",
variant_name: "Default Title"
}
]
}
user_data: {
city: "Kyiv",
country: "UA",
customer_id: "12349878",
email: "test@stape.io",
first_name: "Stape",
last_name: "Stape",
phone: "+3801234567",
region: "Kyiv",
street: "Khreshatyk",
zip: "10000"
}

Add shipping info

     event:"add_shipping_info_stape",
ecomm_pagetype: "basket",
ecommerce:{
cart_total: "600",
value: "600",
currency: "USD",
cart_quantity: 1,
items:[
{
imageURL: "//gtm-test-store-10.myshopify.com/cdn/shop/files/Main_0a40b01b-5021-48c1-80d1-aa8ab4876d3d.jpg?v=1714570180",
item_brand: "Hydrogen Vendor",
item_category: "Gifts",
item_id: "9143899914523",
item_name: "The Collection Snowboard: Hydrogen",
item_sku: "SKU-76543281",
item_variant: "485646409345615",
price: 600,
quantity: "1",
variant_name: "Default Title"
}
]
}
user_data: {
city: "Kyiv",
country: "Ukraine",
customer_id: "12349878",
email: "test@stape.io",
first_name: "Stape",
last_name: "Stape",
phone: "+3801234567",
region: "Kyiv",
street: "Khreshatyk",
zip: "10000"
}

Purchase

    event: "purchase_stape",
ecomm_pagetype: "purchase",
ecommerce: {
cart_quantity: 1,
cart_total: "600",
coupon: "test",
currency: "USD",
discount: "test",
discount_amount: "90.00",
discount_percentage: 15,
shipping: 0,
sub_total: 510,
tax: 0,
transaction_id: "5937102258459",
value: "510",
items: [
{
imageURL: "//gtm-test-store-10.myshopify.com/cdn/shop/files/Main_0a40b01b-5021-48c1-80d1-aa8ab4876d3d.jpg?v=1714570180",
item_brand: "Hydrogen Vendor",
item_category: " Gifts",
item_id: "9143899914523",
item_name: "The Collection Snowboard: Hydrogen",
item_sku: "SKU-76543281",
item_variant: "485646409345615",
price: 600,
quantity: "1",
variant_name: "Default Title"
}
]
}
user_data: {
city: "Kyiv",
country: "UA",
customer_id: "12349878",
email: "test@stape.io",
first_name: "Stape",
last_name: "Stape",
phone: "+3801234567",
region: "Kyiv",
street: "Khreshatyk",
zip: "10000"
}

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.