Skip to content

v1.21.1

Choose a tag to compare

@duracelltomi duracelltomi released this 18 May 18:45
· 48 commits to master since this release

1.21.1

  • Fix: undefined product_qty variable prevents add_to_cart in some cases. Thanks diegoarda
  • Fix: clarified that WebToffee integartion is only needed with the legacy 2.x product line
  • Fix: Reflected Cross-Site Scripting (XSS) with site search tracking. Thanks godzeo!

1.21

!!! WARNING !!!
Significant change in WooCommerce integration!
Check your template whether it supports must have hook: woocommerce_thankyou

  • Added: new WooCommerce option that allows you to fire the view_item event during page load of a variable product using parent product data.
  • Added: item_group_id parameter includes the parent ID of a variable product in WooCommerce
  • Added: GTM4WP_WPFILTER_GET_CSP_NONCE (PHP constant) / gtm4wp_get_csp_nonce WordPress filter to add nonce to script tags supporting Content Security Policy (CSP) setups
  • Updated: purchase event is now fired on the woocommerce_thankyou event. This will move execution time behind consent state checks in most cases making the purchase event working in more cases
  • Updated: GTM4WP_WPFILTER_EEC_ORDER_DATA / gtm4wp_eec_order_data WordPress filter now has a second parameter passing the whole WC_Order object to the filter after the $order_data parameter
  • Updated: no view_cart or begin_checkout events will be triggered from the backend if there are no products in the cart. This prevents wrong data collection with themes not properly supporting WooCommerce hooks
  • Fix: load_plugin_textdomain() related PHP notice on admin page