Broke Analytics
-
Hi ????
Your plugin works great so far, thank you. However it broke my Google Analytics, so Purchases are no longer being tracked as conversions.
I’m using the official plugins for setting up analytics, so this plugin would need the follow the standardized WooCommerce framework:
- Google Analytics for WooCommerce (by WooCommerce)
- Google for WooCommerce (by WooCommerce)
- Site Kit (by Google)
I asked WooCommerce support how to fix this:
Can I just change the “Order received” endpoint in WooCommerce > Settings > Advanced? Is that how the Woo plugins know where to put the tracking code? Will I have to redo the analytics setup afterwards?
They replied:
This would depend on the plugin you are using to generate the new thank you page. I would follow the instructions provided by the developers of the plugin. A custom thank you page needs to take into account a number of factors, as the regular
WooCommerce Supportorder-received
endpoint is not a page, but a separate part of thecheckout
– you will see that it actually appears ascheckout/order-received
The code is injected into the thank you page by thewoocommerce_thankyou
action. This action is used by many plugins, and your custom thank you page plugin should execute the code correctly, or the custom page may break more than just the analytics.Please let me know what you think of this, I am in a bit of a rush because my Ads and Analytics are now broken — thank you!
- You must be logged in to reply to this topic.