GTM Kit – Google Tag Manager & GA4 integration

Açıklama

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.

The settings are organised around what you are trying to do (Setup, Events & data layer, Commerce, Consent & privacy, and Tools), so related options live together and the setting you need is quick to find.

Google Analytics 4 ile izlenen e-ticaret etkinlikleri

The following GA4 events are automatically included in the dataLayer:

WooCommerce

  • view_item_list
  • select_item
  • view_item
  • add_to_wishlist [Premium]
  • add_to_cart
  • view_cart
  • remove_from_cart
  • begin_checkout
  • add_shipping_info
  • add_payment_info
  • purchase
  • refund [Premium]
  • order_paid [Premium]
  • order_processing [Premium]
  • order_completed [Premium]
  • order_refunded [Premium]
  • subscription_started [Premium]

Unlock all features with GTM Kit Premium.

Easy Digital Downloads

  • view_item
  • add_to_cart
  • begin_checkout
  • purchase

Esnek kapsayıcı uygulaması

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.

You can also exclude specific pages from GTM entirely. Add URL patterns on the Container settings page and GTM Kit holds back the container, the noscript fallback, and its data layer scripts on matching pages. Useful for third-party checkout iframes, partner-hosted subpages, and in-app webview routes that run their own tracking. Glob patterns are supported by default, with optional regex for advanced matching.

Yazı Verisi

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.

Ekran Görüntüleri

Yükleme

  1. GTM Kit’i WordPress.org eklenti deposu aracılığıyla veya dosyaları sunucunuza yükleyerek kurun.
  2. Eklentiyi WordPress’teki ‘Eklentiler’ menüsünden etkinleştirin
  3. GTM Kapsayıcı Kimliğinizi (Container ID) girin ve “Değişiklikleri Kaydet”i tıklayın.

SSS

GTM Kapsayıcı Kimliğini (Container ID) nereden alabilirim?

Google Etiket Yöneticisi‘nde bir hesap ve kapsayıcı oluşturup oradan alabilirsiniz.

Google Analytics 4 (GA4) destekleniyor mu?

Evet! Google Analytics 4’ün bütün özelliklerini desteklemek için çalışıyoruz ve Analytics 4’ün gelecekteki tüm özelliklerini uygulayacağız.

Bu eklenti önbellek eklentilerini destekliyor mu?

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

How can I report security bugs?

You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. Report a security vulnerability.

İncelemeler

23 Nisan 2026
Every now and then, plugins cause problems after updates requiring you to work with developers to fix bugs – but this one has worked reliably for years.
21 Ocak 2026 1 yanıt
It’s not working. Instead of this I have to paste script into header of page to have GA4 live again. I spend 4 days with it and it’s not working at all. It was a waste of my time.
16 Ekim 2024
After years of using GTM4WP I started having troubles tracking the purchase events of my woocommerce. GTM Kit solved every issue in 5 minutes. It’s straightforward to set up. It also imports settings from GTM4WP at first activation, and finally, all my e-commerce events are tracked properly.
26 Eylül 2024
I have been using gtm4wp for years and didn’t think I would find anything better. But I did. And with great support. It also fixed the issue with Bricks Builder right away. It looks really great.
20 incelemeyi oku

Katkıda Bulunanlar ve Geliştiriciler

“GTM Kit – Google Tag Manager & GA4 integration” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda bulunmuşlardır.

Katkıda bulunanlar

“GTM Kit – Google Tag Manager & GA4 integration” 4 dile çevrildi. Katkıda bulundukları için çevirmenlere teşekkürler.

“GTM Kit – Google Tag Manager & GA4 integration” eklentisini dilinize çevirin.

Geliştirmeyle ilgilenir misiniz?

Kodu görüntüleyin, SVN deposuna göz atın ya da RSS ile geliştirme günlüğüne abone olun.

Değişiklik Kaydı

2.16.4

Release date: 2026-06-29

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

Hata düzeltmeleri:

  • When the Template Assistant cannot generate a container, the page now shows the reason reported by the server inline (and logs the full detail to the browser console), instead of a generic “Error generating template” message that hid what actually went wrong.

Diğer:

  • The settings screen now ships an sGTM Preview test-send control that GTM Kit Premium registers into the Setup Environment section, so Premium users can send a server-side webhook event to their server container’s Preview/Debug panel.
  • The Event Deferral setting no longer warns about Consent Mode when a consent platform supplies consent through the WP Consent API. The notice now appears only when neither Consent Mode nor the WP Consent API can release deferred events, and its wording names both consent sources instead of implying Consent Mode is required.

2.16.3

Release date: 2026-06-23

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

New:

  • The Event Deferral setting now warns when it is switched on while Consent Mode is off, because deferred events have no consent signal to wait on and never release in that state.

Hata düzeltmeleri:

  • The Commerce “Brand” selector now lists your product brand taxonomies again, instead of showing only “(not set)”. The redesigned settings screen stopped loading the taxonomy and page lists, so the Brand selector (and other taxonomy- or page-based options) appeared empty regardless of how brands were configured.

2.16.0

Release date: 2026-06-23

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

New:

  • The settings screen now uses a redesigned, capability-based interface, organising everything into Setup, Events & data layer, Commerce, Consent & privacy, Tools and more.

Hata düzeltmeleri:

  • The Contact Form 7 “Load JavaScript” setting now shows the recommended choice as selected when the setting has never been saved.

Diğer:

  • Clarified the Debug log setting description so it reflects that it also logs the server-side webhooks GTM Kit sends, not only the purchase event.

2.15.0

Release date: 2026-06-12

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

Hata düzeltmeleri:

  • Security hardening: Links served to the settings interface from remote content (upgrade offers, templates, tutorials) and notifications are now validated before they are used for navigation.

Diğer:

  • New gtmkit_settings_registry filter lets add-ons register their settings fields with the GTM Kit settings screen at runtime. The settings screen now exposes its field registry and related metadata, preparing for GTM Kit’s new settings interface.

2.14.1

Release date: 2026-06-03

A maintenance fix for the 2.14 line; see the 2.14 release post for what 2.14 introduced.

Hata düzeltmeleri:

  • WooCommerce block tracking now loads on block (FSE) themes where Cart, Checkout, Mini Cart, Product Collection, or Related Products are rendered from block templates and template parts. Previously the block tracking bundle could fail to load on these sites, so block ecommerce events never fired.

2.14.0

Release date: 2026-06-02

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

New:

  • New “Engagement events” settings section emits GA4 standard login, sign_up, search, and generate_lead events out of the box. Each event has its own toggle and defaults to on, so customers see the events the moment they upgrade.
  • Rebuilt WooCommerce block tracking on stable data-store APIs. Cart, Checkout, Mini Cart, All Products, Product Collection, Single Product, Related Products, the Cart block cross-sells, and product filter blocks now all emit ecommerce events end to end, including add_to_cart and view_cart from the Mini Cart, list and select tracking for the All Products grid and cart cross-sells, and view_item_list re-fires when a filter or pagination control updates a Product Collection.

Hata düzeltmeleri:

  • The Contact Form 7 integration now loads reliably on form pages when “Load JavaScript” is set to the recommended “Only on pages where the Contact Form 7 script is registered” mode, even when a performance plugin (e.g. WP Rocket) defers Contact Form 7’s own scripts until shortcode render. Previously the integration could be skipped on legitimate form pages and gtmkit.CF7MailSent would not fire.

Diğer:

  • New developer filters let extensions tag the method, normalise the search term, assign a lead value, rename the handoff cookie, veto any event, or opt custom search templates into the search event.
  • New gtmkit_blocks_supported filter lets developers add custom block names to the list that loads GTM Kit’s block tracking.
  • Raised the minimum WooCommerce version to 10.3 for the new block tracking integration. Sites on earlier WooCommerce continue to receive classic-template tracking unchanged.
  • Added Vitest and Playwright test harnesses covering the block tracking path, plus PHPUnit coverage for the block detection and Store API extension.
  • Prepare the settings and setup-wizard bootstrap for React 19, which WordPress will ship in a future release. No behaviour change under the current React 18.

Earlier versions

For the changelog of earlier versions, please refer to the changelog on gtmkit.com.