We’re excited to announce the release of GTM Kit version 1.17. This update brings several key enhancements aimed at providing advanced customization options, boosting performance, and ensuring a more streamlined user experience. With these new features, along with critical bug fixes and code refactoring, GTM Kit continues to evolve to meet your needs.
What’s New in 1.17
Google Tag Manager Environment Customization: We’ve added an option allowing you to specify the Google Tag Manager environment. This feature offers more flexibility in managing different stages of deployment, such as testing, staging, and production.
Performance Optimization: With optimized database queries and general code improvements, GTM Kit 1.17 operates more efficiently. This translates into faster load times and a smoother overall experience.
Container Activation Control: A new filter has been added to deactivate the GTM container on specific pages. This feature is perfect for those who need granular control over where and how GTM is loaded. It must be used in a plugin no later than the hook
plugins_loaded where you can use
add_filter( 'gtmkit_container_active', '__return_false' );.
Enhanced ‘add_to_wishlist’ Event Support: Support for the ‘add_to_wishlist’ event has been improved. Themes and plugins can now simply add the class ‘add_to_wishlist’ to an ‘Add to wishlist’ button to integrate this functionality.
Cookie Keeper _sbp Cookie Fix: We’ve addressed the issue with the missing _sbp cookie in the cookie keeper, ensuring complete functionality and compliance.
Debug Track Purchase Correction: The GTMKIT_EDD_DEBUG_TRACK_PURCHASE and GTMKIT_WC_DEBUG_TRACK_PURCHASE constants were not functioning correctly. This has now been fixed, ensuring reliable debugging capabilities.
WooCommerce Clicks Handling: Recent changes in WooCommerce affected how clicks on grouped products in a product list were handled. We’ve corrected this so that they’re now treated as ‘select_item’ events, not ‘add_to_cart’.
Proper Event Handling for Variations and Grouped Products: Clicks on variation products and grouped products in product lists are now correctly categorized as ‘select_item’ events.
Fix for ‘add_to_cart’ with Product ID Prefix: We’ve fixed an issue where the ‘add_to_cart’ event wasn’t functioning correctly on grouped products when a product ID prefix was used.
Code Refactoring: In our ongoing efforts to make GTM Kit as efficient and maintainable as possible, significant code refactoring has been done. This not only simplifies the code but also enhances its readability and maintainability.
To upgrade to GTM Kit 1.17, head over to the ‘Plugins’ section in your WordPress dashboard, find GTM Kit, and select ‘Update Now’. If you encounter any issues or have questions, our dedicated support team is ready to assist.
Thank you for your continued support of GTM Kit. We are committed to delivering a tool that not only meets but exceeds your expectations. Discover the new capabilities in GTM Kit 1.17 and take your website tracking to the next level!