Complianz and WooCommerce Analytics Integration not working properly
-
Hello,
I think there is an issue with the WooCommerce Google Analytics Integration. I was wondering why there is no conversion tracked in Analytics and found out the following error, when the Analytics plugin is handled by Complianz:
Uncaught ReferenceError: ga is not defined
at ?key=wc_order_EMmUHlvDbWKnE&utm_nooverride=1:477:5This appears on the success page after placing an order.
Let’s have a look at the source code: https://imgur.com/a/rfild6z
As you can see, there are three script tags by the WooCommerce Analytics plugin. The first two script tags have data attributes added by Complianz:
data-service="google-analytics" data-category="statistics" type="text/plain"
The third script tag not, which contains the conversion values. I would imagine this causes the third script tag to be loaded before the previous two.
If I disable Complianz and test again everything works fine. Because then all three Analytics script tags have the normal ‘text/javascript’ type attribute.
I am currently testing with Complianz 6.0.6 and WooCommerce Google Analytics Integration 1.5.8.
Best regards
ManuelEdit: I just updated to Complianz 6.1.0 and it’s the same behaviour.
- The topic ‘Complianz and WooCommerce Analytics Integration not working properly’ is closed to new replies.