Hello @fahir,
Yes, we have this order status parameter in the purchase event. The parameter is ecommerce.status.
{
"event": "purchase",
"event_id": "9QcwiZWhT2",
"ecommerce": {
"currency": "USD",
"transaction_id": "690",
"affiliation": "Online Store",
"value": 216,
"tax": 0,
"shipping": 0,
"discount": 0,
"coupon": "",
"items": [
{
"item_name": "Sunglasses",
"item_id": 21,
"price": 90,
"index": 1,
"item_brand": "",
"item_variant": "",
"quantity": 2,
"item_category": "Accessories"
}
],
"status": "on-hold",
"new_customer": false
}
}
Any doubt I am available
Thread Starter
AWT
(@fahir)
that’s awesome. Last question, does your plugin work in combination with other plugins like stape.io or GTM4WP because I only need that one functionality from your plugin since I tried every single thing to get the order status through custom code and I didn’t manage to do it.
So I would be sending enhanced dataLayer from your plugin but initializing it from another plugin or custom code.
Can it work like that?
Hello @fahir
The plugin works in conjunction with stape.io, yes, and with other datalayer objects it will also work, just worry about not having duplicate events if you use another plugin that also fires events for the datalayer.