Purchase not tracked in Google Analytics 4
-
Hello,
What can I do if my Woocommerce Purchase is not tracked in Google Analytics 4.
I use the Plugin GTM4WP and I guess there is a problem because of the thank you Page.
The problem and a solution is described here https://www.ads-software.com/support/topic/gtm4wp-in-combination-with-pixelyoursite-and-custom-thank-you-page/
———————-
In order to track your custom thank you page, the plugin generating the page should implement at least one of the following WooCommerce hooks:
woocommerce_is_order_received_page
https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/includes/wc-conditional-functions.php#L211woocommerce_thankyou
https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/templates/checkout/thankyou.php#L80Both will be recognized by GTM4WP and the corresponding purchase data will be included in the data layer.
———————————–
But how can I do that?
Thanks in Advance
- The topic ‘Purchase not tracked in Google Analytics 4’ is closed to new replies.