You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the plugin to allow filtering snippet output on purchase events.
What happened instead
Available filters are not covering purchase events.
Steps to reproduce the issue
Hello!
I am currently using the filter "woocommerce_gtag_snippet" to modify main snippet output to remove text/javascript and change it for text/plain. This is to make it compatible with GDPR plugins which will only change it back to text/javascript and therefore actually execute the code after the user has consent.
I am using native woocomerce filter to do the same with the JQuery you inline in product pages.
This works well for most of the events except for purchase which is actually the most important. There is no filter in your code to modify the output so it always has the <script type='text/javascript'> and it causes purchase event to execute before main snippet is even loaded, missing the purchase event.
Could you please consider adding an additional filter for this purpose in your code (function get_ecommerce_tracking_code( $order_id ))?
Thank you in advance.
Regards.
Issue assigned to next milestone.
Issue assigned a priority (will be assessed by maintainers).
The text was updated successfully, but these errors were encountered:
This plugin has similar problems like in "Facebook for Woocommerce" when validating cookies law. I'd like to attach here the discussion from that other plugin because the same feature could be added in both plugins to enable developers to build a custom check on the client side instead of the server side that is not trustworthy when you are caching your website.
As part of the upcoming version 2.0.0 release, we have implemented Consent mode which addresses the GDPR requirements mentioned so I'm closing this issue.
What I expected
For the plugin to allow filtering snippet output on purchase events.
What happened instead
Available filters are not covering purchase events.
Steps to reproduce the issue
Hello!
I am currently using the filter "woocommerce_gtag_snippet" to modify main snippet output to remove text/javascript and change it for text/plain. This is to make it compatible with GDPR plugins which will only change it back to text/javascript and therefore actually execute the code after the user has consent.
I am using native woocomerce filter to do the same with the JQuery you inline in product pages.
This works well for most of the events except for purchase which is actually the most important. There is no filter in your code to modify the output so it always has the <script type='text/javascript'> and it causes purchase event to execute before main snippet is even loaded, missing the purchase event.
Could you please consider adding an additional filter for this purpose in your code (function get_ecommerce_tracking_code( $order_id ))?
Thank you in advance.
Regards.
The text was updated successfully, but these errors were encountered: