GTM Kit – Google Tag Manager 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.


28 di Novembar dal 2023
A nice Plugin. If it continues to be developed without compromising its simplicity and simplicity, I will continue to use it.
11 di Lui dal 2023
We are using the GTM Kit plugin integrated with the Easy Digital Downloads plugin, and it's been working very well for us! Recently, we faced an issue with the GA4 reports where some purchase events were missing. We immediately reached out to the support team, and they provided a quick fix. Now it is working fine with EDD. Thank you!!
19 di Avrîl dal 2023
That plugin was exactly what we've been looking for and testing a couple of paid extensions. This one is super easy to configure and gives the data we exactly needed. EDD integration is a blast!
8 di Març dal 2023
Great alternative to GTM4WP with a clear interface and fast setup
Read all 9 reviews

Contributors & Developers

“GTM Kit – Google Tag Manager integration” is open source software. The following people have contributed to this plugin.


“GTM Kit – Google Tag Manager integration” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “GTM Kit – Google Tag Manager integration” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



Release date: 2023-11-15


  • Fix critical JS bug.


Release date: 2023-11-15

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


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


  • Billing state and shipping stat was not included in the customer data on the ‘purchase’ event.


  • Tested up to WordPress 6.4
  • Tested up to WooCommerce 8.3


Release date: 2023-10-24

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


  • Added support for the WooCommerce block ‘all-products’.
  • Added support for Cookie Keeper .
  • 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).


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


Release date: 2023-10-11


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


Release date: 2023-10-06


  • Set custom page type in post sidebar was removed by mistake in 1.14
  • Fix possible naming collision with other GTM plugins


Release date: 2023-10-03

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


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


  • Flush cache after setting or updating an option.


  • Require WordPress 6.2
  • Require WooCommerce 7.6
  • Tested up to WooCommerce 8.2

Earlier versions

For the changelog of earlier versions, please refer to the changelog on