GTM Kit – Google Tag Manager & GA4 integration


GTM Kit puts the Google Tag Manager container code on your website so that you don’t need to touch any code. It also pushes data from WooCommerce, Easy Digital Downloads (EDD) and Contact Form 7 to the data layer for use with for Google Analytics 4, Facebook and other GTM tags.

The goal of GTM Kit is to provide a flexible tool for generating the data layer for Google Tag Manager. It is easy to use and doesn’t require any coding, but it allows developers to customize the plugin as needed.

eCommerce events tracked with Google Analytics 4

The following GA4 events are automatically included in the dataLayer:


  • view_item_list
  • select_item
  • view_item
  • add_to_wishlist
  • add_to_cart
  • view_cart
  • remove_from_cart
  • begin_checkout
  • add_shipping_info
  • add_payment_info
  • purchase

Easy Digital Downloads

  • view_item
  • add_to_cart
  • begin_checkout
  • purchase

Flexible container implementation

Depending on how you use Google Tag Manager you can delay the loading of the container script until the browser is idle. This may be relevant to you be if are focusing on pagespeed.

You may enter a custom domain name if you are using a custom server side GTM (sGTM) container for tracking. It’s also possible to specify a custom loader. GTM Kit has full support for Stape server GTM hosting.

Post data

You may specify which post data elements you wish to include in the dataLayer for use in Google Tag Manager.
– Post type: include the type of the current post or archive page.
– Page type: include a defined page type. I.e. post, page, product, category, cart, checkout etc.
– Categories: include the categories of the current post or archive page.
– Tags: include the tags of the current post or archive page.
– Post title: include the post title of the current post.
– Post ID: include the Post ID of the current post.
– Post date: include the post date.
– Post author name: include the post author name.
– Post author ID: include the post author ID.


  • GTM Kit Dashboard
  • Google Tag Manager container code and server side GTM
  • Post data settings
  • Google Consent Mode
  • WooCommerce Integration


  1. Install GTM Kit either via the plugin repository or by uploading the files to your server.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Enter your GTM Container ID and click ‘Save changes’.

Часті питання

Where do I get a GTM Container ID?

Create an account and container in Google Tag Manager and get it there.

Is Google Analytics 4 (GA4) supported?

Yes! We strive to support the full feature set of Google Analytics 4 and will implement any future features of Analytics 4.

Is this plugin cache friendly?

Yes! Pagespeed is one of our main focus points, and we strive to make the plugin compatible with full page caching.


Works as expected, its fast, adds datalayer and has fast and useful support!
It's a great plugin, it works perfectly. Very good support. Thanks for creating this plugin! 🙂
This is the type of plugin you are looking for, simple, clean and effective! Thank you for the effort and keep up the good work!
A nice Plugin. If it continues to be developed without compromising its simplicity and simplicity, I will continue to use it.
Прочитати всі 13 відгуків

Учасники та розробники

“GTM Kit – Google Tag Manager & GA4 integration” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:


“GTM Kit – Google Tag Manager & GA4 integration” було перекладено на 2 локалізації. Дякуємо перекладачам за їх роботу.

Перекладіть “GTM Kit – Google Tag Manager & GA4 integration” на вашу мову.

Цікавитесь розробкою?

Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.

Журнал змін


Release date: 2024-04-15

Find out about what’s new in our our release post.


  • 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.


  • JavaScript translations was not loaded correct.


  • Tested up to WooCommerce 8.8.


Release date: 2024-03-20

Find out about what’s new in our our release post.


  • 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.


  • 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.


  • Require WooCommerce 8.0.


Release date: 2024-03-05


  • Scripts were not enqueued if the container was inactive.


  • Tested up to WordPress 6.5.
  • Tested up to WooCommerce 8.7.


Release date: 2024-02-07

Find out about what’s new in our our release post.


  • 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.