Stape/Documentation

Stape Conversion Tracking plugin for WordPress dataLayer

Updated Oct 15, 2025

Below is the list of dataLayer events and their payload that the Stape Conversion Tracking plugin for WordPress generates. The dataLayer events are part of Stape Conversion Tracking configuration - see the detailed guide on how to set up the plugin in our article.

Select item

event: "select_item_stape", ecomm_pagetype: "category", ecommerce: { currency: "USD", value: "25.00", items: [ { item_name: "Shirt - Cream", item_brand: "Stape", item_id: "29", item_sku: "woo-fasion-shirt-cream", price: "25.00", item_category: "Clothing", item_category2: "Shirts", index: 2, quantity: 1 } ], item_list_name: "Shirts" }, user_data: { customer_id: "1", email: "test@stape.io", first_name: "Stape", last_name: "Stape", billing_first_name: "Stape", billing_last_name: "Stape", billing_company: "Stape", billing_address: "69 street 69 house", billing_postcode: "696969", billing_country: "UA", billing_state: "UA30", billing_city: "Kyiv", billing_email: "test@stape.io", billing_phone: "+1234567890" } });

View item list

event: "view_item_list_stape", ecomm_pagetype: "category", ecommerce: { currency: "USD", items: [ { item_name: "Blouse", item_brand: "Stape", item_id: "21", item_sku: "woo-fasion-blouse", price: "0.00", item_category: "Clothing", item_category2: "Shirts", item_list_id: 19, item_list_name: "Shirts", quantity: 1, index: 1 }, { item_name: "Shirt", item_brand: "Stape", item_id: "23", item_sku: "woo-fasion-shirt", price: "18.00", item_category: "Clothing", item_category2: "Shirts", item_list_id: 19, item_list_name: "Shirts", quantity: 1, index: 2 }, { item_name: "Shirt - Cream", item_brand: "Stape", item_id: "29", item_sku: "woo-fasion-shirt-cream", price: "25.00", item_category: "Clothing", item_category2: "Shirts", item_list_id: 19, item_list_name: "Shirts", quantity: 1, index: 3 }, { item_name: "Shirt - Green", item_brand: "Stape", item_id: "33", item_sku: "woo-fasion-shirt-green", price: "20.00", item_category: "Clothing", item_category2: "Shirts", item_list_id: 19, item_list_name: "Shirts", quantity: 1, index: 4 } ] }, user_data: { customer_id: "1", email: "test@stape.io",     first_name: "Stape",     last_name: "Stape",     billing_first_name: "Stape",     billing_last_name: "Stape",     billing_company: "Stape",     billing_address: "69 street 69 house",     billing_postcode: "696969",     billing_country: "UA",     billing_state: "UA30",     billing_city: "Kyiv",     billing_email: "test@stape.io",     billing_phone: "+1234567890" }

Add to cart

event: "add_to_cart_stape", ecomm_pagetype: "product", ecommerce: { currency: "USD", value: "18.00", items: [ { item_name: "Shoes", item_brand: "Stape", item_id: "27", item_sku: "woo-fasion-shoes", price: "18.00", item_category: "Clothing", item_category2: "Accessories", index: 1, quantity: 1 } ] }, user_data: { customer_id: "1", email: "test@stape.io", first_name: "Stape", last_name: "Stape", billing_first_name: "Stape", billing_last_name: "Stape", billing_company: "Stape", billing_address: "69 street 69 house", billing_postcode: "696969", billing_country: "UA", billing_state: "UA30", billing_city: "Kyiv", billing_email: "test@stape.io", billing_phone: "+1234567890" }

Remove from cart

event: "remove_from_cart_stape", ecommerce: {  currency: "USD",  items: [    {      item_id: 23,      quantity: 1,      index: 1,      item_category2: "Shirts",      item_category: "Clothing",      price: "18.00",      item_sku: "woo-fasion-shirt",      item_brand: "Stape",      item_name: "Shirt"    }  ] }, user_data: {  customer_id: "1", email: "test@stape.io", first_name: "Stape", last_name: "Stape", billing_first_name: "Stape", billing_last_name: "Stape", billing_company: "Stape", billing_address: "69 street 69 house", billing_postcode: "696969", billing_country: "UA", billing_state: "UA30", billing_city: "Kyiv", billing_email: "test@stape.io", billing_phone: "+1234567890" }

Begin checkout

event: "begin_checkout_stape", ecomm_pagetype: "basket", ecommerce: { currency: "USD", value: "25.00", items: [ { item_name: "Shirt - Cream", item_brand: "Stape", item_id: "29", item_sku: "woo-fasion-shirt-cream", price: "25.00", item_category: "Clothing", item_category2: "Shirts", quantity: 1, index: 1 } ] }, user_data: { customer_id: "1", email: "test@stape.io", first_name: "Stape", last_name: "Stape", billing_first_name: "Stape", billing_last_name: "Stape", billing_company: "Stape", billing_address: "69 street 69 house", billing_postcode: "696969", billing_country: "UA", billing_state: "UA30", billing_city: "Kyiv", billing_email: "test@stape.io", billing_phone: "+1234567890" }

Purchase

event: "purchase_stape", ecomm_pagetype: "purchase", ecommerce: { transaction_id: "208", affiliation: "", value: "25.00", tax: "0.00", shipping: "0.00", currency: "USD", coupon: "", discount_amount: "0.00", items: [ { item_name: "Shirt - Cream", item_brand: "Stape", item_id: "29", item_sku: "woo-fasion-shirt-cream", price: "25.00", item_category: "Clothing", item_category2: "Shirts", quantity: 1, index: 1 } ] }, user_data: { customer_id: "1", billing_first_name: "Stape", billing_last_name: "Stape", billing_address: "69 street 69 house", billing_postcode: "696969", billing_country: "UA", billing_state: "UA30", billing_city: "Kyiv", billing_email: "test@stape.io", billing_phone: "+1234567890", email: "test@stape.io", first_name: "Stape", last_name: "Stape", new_customer: "false" }

Comments

Can’t find what you are looking for?