- 1 Minute to read
- Print
- DarkLight
Example: Data Layer
- 1 Minute to read
- Print
- DarkLight
Shopware 5 is no longer supported. Please use Shopware 6 instead.
The following example contains one page per type with the respective set values. These values are automatically written to a Tag Integration Data Layer. You can then create these values as parameters in Tag Integration and assign them to the Tracking Plugin.
Example data layer on a product detail page
window._ti = {
"pageLanguage": "en",
"productId": "SW10159",
"productName": "YORK 3",
"productPrice": "599",
"productQuantity": "1",
"currency": "EUR",
"productStatus": "view",
"instock": "12",
"isAvailable": "1",
"currency": "EUR",
"productCat_1_1": "Craft & Tradition",
"productCat_1_2": "Men",
"productCat_1_3": "Business bags",
"productCat_Canonical_1": "Craft & Tradition",
"productCat_Canonical_2": "Men",
"productCat_Canonical_3": "Business bags",
"pageType": "Product details",
"pageId": "en.craft & tradition.men.sw10159"
};
Page | Tag Integration Data Layer | Example | Fix* | Dynamic* |
---|---|---|---|---|
Category pages | pageId | en.adventure.equipment | ||
pageType | Category page | |||
pageCat_1 | Adventure | |||
pageCat_2 | Equipment | |||
Shopping cart page | pageId | en.checkout.cart | ||
pageType | Buying process | |||
Product view | pageId | en.adventure.equipment.snowboard.sw100391 | ||
pageType | Product details | |||
productId | SW10039.1 | |||
productName | Pocket knife | |||
productCat_1_1 | Adventure | |||
productCat_1_2 | Equipment | |||
productCat_1_3 | Snowboard | |||
productPrice | 399 | |||
productQuantity | 1 | |||
productStatus | view | |||
currency | EUR | |||
instock | 12 | |||
isAvailable | 1 | |||
Add to shopping cart | pageId | en.adventure.equipment.snowboard.sw100391 | ||
pageType | Product details | |||
productId | SW10039.1 | |||
productName | Pocket knife | |||
productCat_1_1 | Adventure | |||
productCat_1_2 | Equipment | |||
productCat_1_3 | Snowboard | |||
productPrice | 399 | |||
productQuantity | 1 | |||
productStatus | add | |||
currency | EUR | |||
instock | 12 | |||
isAvailable | 1 | |||
Order confirmation page | pageId | en.checkout.finish | ||
pageType | Buying process | |||
orderId | 20001 | |||
orderValue | 14.90 | |||
productId | SW10120;SW10119 | |||
productName | product 1;product 2 | |||
productQuantity | 1;1 | |||
productPrice | 6;5 | |||
currency | EUR | |||
paymentName | Mastercard | |||
deliveryName | Standard service | |||
productStatus | conf | |||
Login page | pageId | en.login | ||
pageType | Account | |||
Account area | pageId | en.login.overview | ||
pageType | Account | |||
Internal search | pageId | en.search | ||
pageType | Search page | |||
internalSearch | snowboard | |||
numberSearchResults | 24 | |||
Information page | pageId | en.aboutus | ||
pageType | Editorial content | |||
Logged in user | userId | ef8ca1c0ff7d2e34dc0953d4222655b8 | ||
isLoggedIn | 1 |
*In the column "Fix" all parameters are marked which are consistent of the same value. The value is always passed in English. For all marked parameters under "Dynamic", the transferred value is determined dynamically.