• Resolved AWT

    (@fahir)


    I have a question about your plugin, does your plugin maybe have the ability to add the order status to the data layer so that when I retrieve the dataLayer I can check if the order status is Completed then I will do whatever, if not then not…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Heitor_tito

    (@heitor_tito)

    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?

    Plugin Contributor Heitor_tito

    (@heitor_tito)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.