Hi Thomas,
I’ve done some modifications and the datalayer with checkout events is no longer on the order confirmation page. But now instead of it I have a datalayer that doesn’t contain the “ecommerce” event. Is that the correct datalayer I am supposed to have?
I am asking because in my gtm settings I use the datalayer variable “ecommerce.purchase.products” in order to retreive product information, that I use for dynamic facebook ads. If I don’t have those events in the datalayer I need to find another way to get this info. Do you have something to suggest?
{
pagePostType: ‘page’,
pagePostType2: ‘single-page’,
cartContent: {
totals: {
applied_coupons: [],
discount_total: 0,
subtotal: 0,
total: 0
},
items: []
},
orderData: {
attributes: {
date: ‘2021-0_________1:22:28+00:00’,
order_number: ‘9__5’,
order_key: ‘wc_order_Z_________tV’,
payment_method: ‘mypos_virtual’,
payment_method_title: ‘Плащане с банкова карта’,
shipping_method: ‘Безплатна доставка’,
status: ‘processing’,
coupons: ”
},
totals: {
currency: ‘BGN’,
discount_total: ‘0’,
discount_tax: ‘0’,
shipping_total: ‘0.00’,
shipping_tax: ‘0’,
cart_tax: ‘0’,
total: ‘100.00’,
total_tax: ‘0’,
total_discount: ‘0’,
subtotal: ‘100’,
tax_totals: []
},
customer: {
id: 22,
billing: {
first_name: ‘V______’,
last_name: ‘G______’,
company: ”,
address_1: ‘G__________v 2, G, floor _, app. __5’,
address_2: ”,
city: ”,
state: ”,
postcode: ”,
country: ”,
email: ‘[email protected]’,
phone: ‘8_______1’
},
shipping: {
first_name: ‘V_____’,
last_name: ‘G________’,
company: ”,
address_1: ‘G___________v 255, G, floor _8, app. __’,
address_2: ”,
city: ”,
state: ”,
postcode: ”,
country: ”
}
},
items: [
{
id: 6__,
name: ‘Комбо меню 5 за 50 лв.’,
sku: 667,
category: ‘Меню’,
price: 50,
stocklevel: 38,
quantity: 2
}
]
},
gtm: {start: 1610035846912, uniqueEventId: 119},
event: ‘gtm.load’
}
-
This reply was modified 3 years, 10 months ago by
kterziev.