Descripción
GTM Kit añade el contenedor de Google Tag Manager en tu sitio web para que no tengas que tocar ningún código. También envía datos de WooCommerce, Easy Digital Downloads (EDD) y Contact Form 7 a la capa de datos para su uso con Google Analytics 4, Facebook y otras etiquetas de GTM.
El objetivo de GTM Kit es proporcionar una herramienta flexible para generar la capa de datos para Google Tag Manager. Es fácil de usar y no requiere codificación, pero permite a los desarrolladores personalizar el plugin según sea necesario.
Eventos de ecommerce rastreados con Google Analytics 4
Los siguientes eventos GA4 se incluyen automáticamente en 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]
Desbloquea todas las funciones con la extensión GTM Kit Woo.
Easy Digital Downloads
- view_item
- add_to_cart
- begin_checkout
- purchase
Implementación flexible del contenedor
Según cómo utilices Google Tag Manager, puedes retrasar la carga del script del contenedor hasta que el navegador esté inactivo. Esto puede ser importante si te centras en la velocidad de la página.
Puedes introducir un nombre de dominio personalizado si estás utilizando un contenedor GTM Server-side (sGTM) personalizado para el seguimiento. También es posible especificar un cargador personalizado. GTM Kit tiene soporte completo para el alojamiento GTM Server-side de Stape.
Datos de las entradas
Puedes especificar qué elementos de datos de entradas deseas incluir en el dataLayer para usar en Google Tag Manager.
– Post type: incluye el tipo de publicación actual o página de archivo.
– Page type: incluye un tipo de página definido, es decir, entrada, página, producto, categoría, carrito, pago, etc.
– Categories: incluye las categorías de la publicación actual o página de archivo.
– Tags: incluye las etiquetas de la publicación actual o página de archivo.
– Post title: incluye el título de la entrada actual.
– Post ID: incluye el ID de la publicación actual.
– Post date: incluye la fecha de la publicación.
– Post author name: incluye el nombre del autor de la publicación.
– Post author ID: incluye el ID del autor de la publicación.
Capturas
Instalación
- Instala GTM Kit a través del repositorio de plugins de WordPress.org o subiendo los archivos a tu servidor.
- Activa el plugin a través del menú «Plugins» en WordPress
- Introduce tu ID de contenedor de GTM y haz clic en «Guardar cambios».
FAQ
-
¿Donde puedo conseguir el ID del contenedor de GTM?
-
Crea una cuenta y un contenedor en Google Tag Manager.
-
¿Es compatible con Google Analytics 4?
-
¡Sí! Nos esforzamos por ofrecer compatibilidad con todas las funciones de Google Analytics 4 e implementaremos todas sus funciones futuras.
-
¿Es compatible con plugins de caché?
-
¡Sí! PageSpeed es uno de nuestros principales puntos de atención y nos esforzamos por hacer que el plugin sea compatible con el almacenamiento en caché de páginas completas.
-
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.
Reseñas
Colaboradores y desarrolladores
«GTM Kit – Google Tag Manager & GA4 integration» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores«GTM Kit – Google Tag Manager & GA4 integration» está traducido en 4 idiomas. Gracias a los traductores por sus contribuciones.
Traduce «GTM Kit – Google Tag Manager & GA4 integration» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
2.11.0
Release date: 2026-05-11
Find out about what’s new in our our release post.
New:
- «Exclude tax» toggle now controls every standard e-commerce event the data layer emits:
view_cart,begin_checkout,purchase, variation prices on variable product pages (re-firedview_item+add_to_cart), and the per-item coupondiscountfield.
Bugfixes:
- Cart, checkout, variation, and coupon-discount events now follow the «Exclude tax» toggle consistently across
value,price, anddiscountfields. The GTM Kit Woo and GTM Kit Premium add-ons extend the fix to refund and order-paid events in their paired releases. - Silence the «translation loading triggered too early» notice that WordPress 6.7+ logs against the
gtm-kittext domain by registering translations at the very start ofinitbefore any other code can request a translated string. - Close an edge case where a script-dependency notice could still appear under WordPress 6.9.1+ when a consent or CMP plugin toggled the GTM Kit container active mid-request, by asking the WordPress script registry directly which scripts were actually registered instead of re-evaluating the container gate.
Other:
- Heads up: GA4 numbers may move after this update. Stores with prices entered ex-tax and tax-inclusive cart display will see
valuechange from ex-tax to inc-tax in cart and checkout events. - New
gtmkit_resolve_tax_modeandgtmkit_resolve_item_discountfilters let developers override the toggle programmatically (per-event or per-context) and override the per-item coupon discount calculation. - Minimum required WordPress version is now 6.8 (was 6.7). Sites still on WordPress 6.7 won’t get this update via the dashboard until they upgrade WordPress.
2.10.1
Release date: 2026-05-07
Tag-only follow-up to 2.10.0 — completes the consent admin-badge surface alongside the React renderer that already shipped in 2.10.0. See the 2.10 release post for the broader context.
New:
- New
gtmkit_consent_admin_badgesfilter lets add-ons (e.g. Premium’s WP Consent API integration) push status banners onto the Consent settings page so users see immediately when a higher-priority consent source has taken over.
2.10.0
Fecha de la versión: 6 de mayo de 2026
Descubre las novedades en nuestro artículo sobre el lanzamiento.
New:
- New «CMP script attributes» section on the Consent settings page lets you toggle Cookiebot, Iubenda, and CookieYes script-blocking attributes with one click and add a custom attribute for any other CMP — no PHP filters required.
- Fresh installs auto-detect a known CMP plugin (Cookiebot, Iubenda, CookieYes) and pre-select the matching toggle so the right attribute is on from day one.
- New «Script gating» mode on the Consent settings page lets you choose between always loading GTM, letting it load under Consent Mode v2 control, or holding it back entirely until consent is granted. Default stays as «Always load» so existing installs see no change.
- Strong-block mode masks the Google Tag Manager container until visitors consent. Works alongside any CMP and falls back gracefully when no consent signal arrives.
- Power users can override which consent categories must be granted before strong-block mode unmasks GTM via the new
gtmkit_strong_block_required_categoriesfilter. window.gtmkit.consent.stateexposes the current consent state so partner scripts and integrators can inspect it without subscribing to events.- New developer hooks let CMP integrations and consent add-ons plug into GTM Kit’s consent flow without forking the plugin — sites running Cookiebot, CookieYes, WP Consent API or in-house consent solutions can now feed their state straight into GTM Kit.
- Server-side broadcast
gtmkit_consent_updatedso other plugins can react to consent state changes without polling. - Per-event
gtmkit_event_should_deferfilter so future deferral features can hold individual events back when consent is missing.
Bugfixes:
- Eliminate «dependencies that are not registered: gtmkit-container» warnings logged by WordPress 6.9.1+ on sites that have GTM Kit’s container active.
Other:
- The Cookiebot script attribute (
data-cookieconsent="ignore") is now configurable via Settings Consent CMP script attributes. Existing installs keep the attribute on by default to preserve current behavior; turn it off explicitly if you do not use Cookiebot.
2.9.0
Release date: 2026-04-29
Find out about what’s new in our our release post.
Enhancements:
- Scope Google Consent Mode defaults to specific countries or regions (e.g. DK, DE, US-CA) instead of applying them everywhere. Useful for sites with visitors both inside and outside the EU.
- Consent updates from other plugins or partner scripts can now talk to GTM Kit through a simple JavaScript API, making CMP integrations easier.
Bugfixes:
- Webhooks for Server-side Tracking on the WooCommerce integrations page no longer stay locked after entering an sGTM Container Domain on premium installs.
Other:
- «Wait For Update» is now a proper number field with a sensible 500 ms default on new installs. Your existing value is kept.
- Clearer warning on the Consent Mode page — if Cookiebot, Complianz, CookieYes, or Cookie Information already handles your consent, leave this setting off.
- Introduced an internal automated test suite (PHPUnit + Vitest) and continuous integration across PHP 7.4–8.4 × WordPress 6.9. No functional change — every future release is now verified by unit and integration tests before shipping, raising the bar on quality and reliability.
2.8.4
Release date: 2026-04-23
Other:
- Declared compatibility with WooCommerce Product Object Caching (
product_instance_caching) introduced in WooCommerce 10.5. No functional change; resolves the «incompatible plugins» notice in WooCommerce Settings Advanced Features. - Probado hasta WooCommerce 10.7.
- Tested up to WordPress 7.0.
2.8.3
Release date: 2026-03-18
Bugfixes:
- Fix: Add error handling to WooCommerce blocks action handlers to prevent tracking errors from breaking checkout functionality or interfering with third-party plugins.
Other:
- Tested up to WooCommerce 10.6.
2.8.2
Release date: 2026-02-17
Bugfixes:
- Fix undefined array key warning for order-received query var in edge cases like certain payment gateway redirects or bot traffic.
2.8.1
Release date: 2026-01-30
Bugfixes:
- Fixes correct detection of the premium plugin.
2.8.0
Release date: 2026-01-29
Enhancements:
- Improved internal handling of plugin settings to make GTM Kit more reliable and easier to maintain, while ensuring full backward compatibility with existing configurations.
Other:
- Tested up to WooCommerce 10.5.
- Require WooCommerce 9.5.
Earlier versions
Para consultar el registro de cambios de versiones anteriores, consulta el registro de cambios en gtmkit.com.





