CHANGELOG
Everything new in GTM Kit
Releases for GTM Kit and GTM Kit Premium, newest first.
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
Added
- Improved support for the WooCommerce cart and checkout blocks
- Added the class input-needed to the block list of the add_to_cart event
- Added option to import plugin settings from GTM4WP in the setup wizard
- Improved the setup wizard with option to enable essential settings
Changed
- Use global object for script data and settings
- Require WooCommerce 7.1
- Require WordPress 6.1
- Tested up to WordPress 6.3
- Tested up to WooCommerce 8.0
Fixed
- Cast transaction_id to string. According to the GA4 documentation transaction_id should be a string as it allows numbers, letters, and special characters like dashes or spaces.
Added
- Added Just-The-Container mode for those with simple needs. This option reduces the functionality to just the GTM container code.
- Added help section with GTM container import files
Changed
- Removed option to delay the container script by 2 seconds.
- WooCommerce tested up to: 7.9
- Added PHPStan to ensure code quality
- Refactored code and improved code quality
- All PHP classes are marked ‘final’
- The Gulp build tool has been removed and we are now using NPM as a build tool
Added
- Added setup wizard for onboarding new users
Changed
- Updated dependencies
- Implemented Tailwind
Added
- Added option to include the customer data in the data layer on the “purchase” event.
- Added the constant ‘GTMKIT_WC_DEBUG_TRACK_PURCHASE’, which allows you to force tracking of purchase event on every page refresh for debugging.
Fixed
- Fixed a bug where Easy Digital Download Pro was not detected.
Changed
- Changed required capability from ‘install_plugins’ to ‘manage_options’.
- WooCommerce tested up to: 7.6.
Added
- Added ‘add_to_wishlist’ event when used together with the most popular wishlist plugins ‘YITH WooCommerce Wishlist’ and ‘TI WooCommerce Wishlist’.
- Improve compatibility with other plugins and customisations.
- Added item_variant to the items element in the datalayer.
- Added ‘coupon’ to the datalayer.
- Added option to log helpful messages and warnings to the browser log.
Fixed
- Fixed a bug where inline styles would be stripped from the HTML.
- Fixed af bug where items in the ‘view_cart’ event had double brackets.
Fixed
- The begin_checkout event did not contain data layer values for ecommerce.currency and ecommerce.value
Added
- Added support for the new WooCommerce checkout block
- Added meta box on posts where you can enter the page type to be included in the data layer.
- Added the filter gtmkit_admin_capability, which allows you to set the capability required to manage the plugin options.
- Added option to share anonymous data with the development team to help improve GTM Kit.
Fixed
- Type cast the item value to prevent string values in the data layer
- On installations of Easy Digital Download where the Confirmation Page was not configured the Purchase event would not fire.
Changed
- Minor styling of the dashboard
- Updated the tutorial section
- Improved some help texts
- Added missing translation strings
- WordPress tested up to 6.2
- WooCommerce tested up to: 7.5.
Fixed
- Backwards compatibility with PHP 7.2. Trailing comma in function calls is only available since PHP 7.3
Added
- Added declaration of plugin compatibility with WooCommerce High-Performance Order Storage.
Changed
- WooCommerce tested up to: 7.4