Google Analytics and Woo – Send order information on non-standard success page

0

I have a WooCommerce website that is customized but runs analytics via the official woocommerce addon. I’ve been told that the analytics doesn’t capture BACS orders when they’ve been set to “Complete” on the admin end.

I assume this is understandable considering there’s no success page involved, so i thought the best way to go through this would be to build a function for functions.php that, if it was a BACS going from “on hold” to Complete”, it would send the analytics data.

Unfortunately im struggling with the analytics part of this. I understand i can send objects to google analytics so it sees the object data but i’m wondering if it automatically figures out that it’s a woocommerce order?

Has anyone had any experience with this? If so, am i thinking about how to capture this the wrong way? Should it be capturing it on complete regardless?

Edit: https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce i’ve been looking here and i assume this is what i’m looking for?

Link: Google Analytics and Woo – Send order information on non-standard success page
Source: Stack WordPress

Share.

About Author

Leave A Reply