• Resolved jesus225

    (@jesus225)


    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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Additional filter for purchase transaction’ is closed to new replies.