CHANGELOG
Everything new in GTM Kit
Releases for GTM Kit and GTM Kit Premium, newest first.
Fixed
- wait_for_update was not printed in Google Consent Mode default settings.
Added
- Added an Event Inspector for verifying that events are being pushed to the datalayer. You can now debug events without using GTM preview mode.
- Added advanced GCM settings: ‘ads_data_redaction’, ‘url_passthrough’ and ‘wait_for_update’.
- Updated the custom container loader for use with Stape.io.
Added
- Added user-data in the datalayer containing user data formatted for the User-Provided Data variable so you don’t have to map it manually.
- Added Google Tag Manager templates for Google Ads and Facebook.
- Added dynamic template sections that allows for template updates wíthout updating the plugin.
- The tutorial section is now dynamic and based on a feed, so we don’t have to update the plugin to include new tutorials.
Fixed
- JavaScript translations was not loaded correct.
Changed
- Tested up to WooCommerce 8.8.
Added
- Added a new section for GTM templates that you can use to configure the necessary Tags, Triggers and Variables in Google Tag Manager.
- Added support for the ‘new_customer’ parameter on the ‘purchase’ event, which is used for customer acquisition reporting and Google Smart Shopping campaigns.
- Added a debug log for debugging the ‘purchase’ event without make a purchase.
- Improved the pagespeed of the control panel. The control panel is now loading significantly faster than before.
Fixed
- Add missing ‘currency’ on the ‘view_item’ event.
- Add missing ‘payment_type’ on the ‘add_payment_info’ event.
- On the ‘add_shipping_info’ and ‘add_payment_info’ events the items parameter was cast as an object instead of an array as it should be.
Changed
- Require WooCommerce 8.0.
Fixed
- Scripts were not enqueued if the container was inactive.
Changed
- Tested up to WooCommerce 8.7.
Added
- Add option to fire a ‘load_delayed_js’ event, which can be used to delay JavaScript execution in Google Tag Manager.
- This release comes with many behind-the-scenes improvements and general enhancements.
- The script settings are the same on all pages and are now cached in the object cache for better performance.
- The function to share system data with the support team has been improved with more data.
- The code has been refactored for extendability.
Fixed
- Added missing flush of the ecommerce object on the select_item event.
- 1.17 introduced a bug that caused item brand to be limited to a product attribute.
Changed
- Tested up to WooCommerce 8.5.
- Minor refactoring.
Added
- Add support for Google Consent Mode v2
- Added a function to share system data with the GTM Kit support team. If you have registered a support request on WordPress.org and the GTM Kit support team has asked you to send your system data you can now do that in a secure way without posting any private information in the support forum.
- Enhanced support for the select_item event in more WordPress themes. This update significantly improves the compatibility of the select_item event handling in themes such as Woodmart.
Fixed
- When adding a product to the cart from a product category page the quantity was not specified in the add_to_cart event.
- On Single product pages a click on a quantity control would result in an undefined event.
Added
- Added option to specify the Google Tag Manager environment.
- Performance optimization through optimized database queries and general code improvements.
- Added a filter to deactivate the container, so the container can be deactivated on specific pages.
- Improved support of the ‘add_to_wishlist’ event. Themes and plugins just have to add the class ‘add_to_wishlist’ on the ‘Add to wishlist’ button.
Fixed
- Add missing _sbp cookie in the cookie keeper.
- The constant GTMKIT_EDD_DEBUG_TRACK_PURCHASE and GTMKIT_WC_DEBUG_TRACK_PURCHASE was not overriding correct.
- Because of recent changes in WooCommerce clicks on grouped products in a product list would be treated as add_to_cart and not select_item.
- Clicks on variation products and grouped products in product lists was treated as add_to_cart events and are now select_item events as they should be.
- If a product ID prefix was used the ‘add_to_cart’ event did not work on grouped products.
Changed
- Refactoring code for simplicity and maintainability.
Fixed
- Fix critical JS bug.
Added
- Add option to include customer data from Easy Digital Downloads on the purchase event.
- Added the filter ‘gtmkit_datalayer_script’, which allows you to filter the datalayer script.
- Added the constant ‘GTMKIT_EDD_DEBUG_TRACK_PURCHASE’, which allows users of Easy Digital Downloads to force tracking of purchase event on every page refresh for debugging.
Fixed
- Billing state and shipping stat was not included in the customer data on the ‘purchase’ event.
Changed
- Tested up to WordPress 6.4
- Tested up to WooCommerce 8.3
Added
- Added support for the WooCommerce block ‘all-products’.
- Inline scripts are now registered with the wp_add_inline_script insted of wp_head. This allows easy extension GTM Kit and implementation of a CSP (Content Security Policy).
Fixed
- The product ID Prefix was not added when a product variation was selected.
- Tax was not added on the total on the add_shipping_info and add_payment_info events.
Fixed
- Items was not loaded correct in the Ease Digital Downloads begin_checkout event.
- Fixes a problem where variation products would use the master product id.
- Fixes an error when shipping was selected in the WooCommerce block cart.
- Using variation product selection without including gtmkit_product_data would result in a JavaScript error.
- Using the WooCommerce ‘All products’ block without including gtmkit_product_data would result in a JavaScript error.
Fixed
- Set custom page type in post sidebar was removed by mistake in 1.14
- Fix possible naming collision with other GTM plugins
Added
- There is a new admin GUI based on WordPress components and the admin is now more extendable.
- We have added a more robust method of adding data attributes to the HTML.
- The autoload of options has been optimized for better performance.
Fixed
- Flush cache after setting or updating an option.
Changed
- Require WordPress 6.2
- Require WooCommerce 7.6
- Tested up to WooCommerce 8.2
Fixed
- Fixes a bug that prevented the option to import settings from other plugins on first install.
Fixed
- Fixes a bug where a REST request could fail because the function is_plugin_active() is not ready.
Changed
- Tested up to WooCommerce 8.1
Added
- Add option to set Google Consent Mode default settings if a Consent Management Platform is not used.
- Added support for import of more plugin configurations.
- Prevent Consent Management Platforms from blocking GTM Kit and the Google Tag Manager container. This can be overridden with the filter hook ‘gtmkit_header_script_attributes’.
Fixed
- Fix a bug that in some cases would cause a namespace problem.
Changed
- Declare compatibility with the WooCommerce Cart and Checkout blocks.
- Comply with WordPress Coding Standards.
Fixed
- Fixes an error when no payment gateways are defined.
- Fixes empty items in begin_checkout event.
Fixed
- A custom datalayer name was not registered correct