CHANGELOG
Everything new in GTM Kit
Releases for GTM Kit and GTM Kit Premium, newest first.
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
Added
- Added support Easy Digital Downloads for the events: view_item, add_to_cart, begin_checkout, purchase
- Added support for primary product category in Rank Math SEO
Changed
- WooCommerce tested up to: 7.3
- Refactored integrations
- Added missing translation string
Added
- Align text domain with GlotPress making the plugin compatible with translations from WordPress.org
Added
- Added better help texts.
- Fixed typos.
Added
- Added better support for the Google Ads remarketing tag.
Added
- Add option til select the Google business vertical value to include in all items. This is used for Google Ads remarketing.
- Add option to add a prefix to the item IDs.
Fixed
- Fix wrong currency value in the Data Layer.
Added
- By default the Contact Form 7 integration script will only load on pages where the Contact Form 7 script is registered.
- Tutorials and help text have been improved
Fixed
- Fix datalayer_name collision when both WooCommerce and CF7 integration are active.
Changed
- WooCommerce tested up to: 7.1
Added
- Added tutorials section to the dashboard.
Fixed
- Fix the description og the CF7 integration.
Fixed
- The items object was limited to 1 on the checkout page.
Added
- Added options to add user data to the datalayer (logged in, user ID, user role).
- Added option to limit view_item event on variable products to the master product instead of pushing the view_item event on both the master and selected variation.
- Added edit button on container dashboard
Fixed
- Clear the previous ecommerce object before add_to_cart.
- Set default option for CF7 integration
Changed
- Added support links in help section
Fixed
- Fix custom datalayer name in CF7.