• Resolved Elia

    (@prettyboyelias)


    Hi there,

    I’ve recently noticed that all our On-hold orders are not counted in Google Analytics. Our payment gateway setup the way that sometimes the order status is “Completed” and sometimes is “On-hold”. We can’t fix this.

    Could you please give me a snippet or something that would make “On-hold orders” show in Google Analytics?

Viewing 1 replies (of 1 total)
  • Plugin Support nicw.a11n

    (@nicw)

    Hi @prettyboyelias

    The Google Analytics Integration relies on the customer landing on the “Thank you” page after passing through checkout.

    As that page loads, the purchase event is triggered, and the data is passed to Google Analytics. If a payment method does not refer the customer to the thank you page, the event is not triggered.

    Unfortunately, there is not much one can do about this, beyond possibly triggering custom JavaScript code on checkout (which would mean all unpaid and failed orders would be included in the revenue displayed on Google Analytics).

    It may be worth remembering that Google analytics data is entirely reliant on the browser, and if the customer has disabled tracking that data will not be captured anyway.

    Doing this yourself would be a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.
    ?
    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.
    ?
    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.`

Viewing 1 replies (of 1 total)
  • The topic ‘On-hold orders’ is closed to new replies.