Title: GTM Kit &#8211; Google Tag Manager &amp; GA4 integration
Author: TLA Media
Published: <strong>6 de septiembre de 2022</strong>
Last modified: 2 de noviembre de 2026

---

Buscar plugins

![](https://ps.w.org/gtm-kit/assets/banner-772x250.png?rev=2820073)

![](https://ps.w.org/gtm-kit/assets/icon.svg?rev=2783020)

# GTM Kit – Google Tag Manager & GA4 integration

 Por [TLA Media](https://profiles.wordpress.org/tlamedia/)

[Descargar](https://downloads.wordpress.org/plugin/gtm-kit.2.23.1.zip)

[Vista previa](https://es.wordpress.org/plugins/gtm-kit/?preview=1)

 * [Detalles](https://es.wordpress.org/plugins/gtm-kit/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/gtm-kit/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/gtm-kit/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/gtm-kit/#developers)

 [Soporte](https://wordpress.org/support/plugin/gtm-kit/)

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

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.

### Know when your tracking breaks

Tracking fails quietly. A caching plugin strips the container out of the page, a
second plugin loads it a second time, a staging copy reports into your live property,
and nothing on the settings screen says so.

GTM Kit checks one of your own pages once a day, the way a visitor receives it, 
and tells you when nothing on your site is loading your container, or when your 
pages load tracking twice. Where it recognises the plugin or tool adding the second
copy, it names it.

WordPress’s own Site Health screen reports on GTM Kit directly: whether your container
is set up and reaching your pages, whether consent is configured, whether GTM Kit’s
settings can be saved at all, and, if you serve the Google tag from your own domain,
whether that is still working. A GTM Kit section on the Info tab lists your whole
configuration on one screen and copies it into a support request with one click.

On sites WordPress reports as staging, development or local, GTM Kit leaves the 
container out, so test traffic never reaches your live analytics. The data layer
is still built there, and a setting loads the container anyway when you are measuring
a test site on purpose.

### 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]**
 * order_processing **[Premium]**
 * order_completed **[Premium]**
 * order_refunded **[Premium]**
 * subscription_started **[Premium]**

Unlock all features with [GTM Kit Premium](https://gtmkit.com/).

### Easy Digital Downloads

 * view_item
 * add_to_cart
 * begin_checkout
 * purchase

### Serve the Google tag from your own domain

Ad blockers and browser tracking restrictions treat a script loaded from Google 
differently from one loaded by your own site. GTM Kit can serve the Google tag from
your own domain instead, so the tag loads where a request to Google’s domain would
have been blocked. The measurement the tag sends still goes to Google; moving that
to your domain as well needs Google’s tag gateway through a CDN or host that supports
it.

Before you can switch it on, GTM Kit checks that your server can reach Google and
that the address it would serve the tag from is actually reachable, and it repeats
both checks once a day afterwards. If either stops working, GTM Kit goes back to
loading the container the standard way and tells you, so your tracking never stops
without warning.

It is off by default, and it is an alternative to pointing GTM Kit at your own server-
side container domain rather than something you run alongside one.

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

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.

### Moving from another Google Tag Manager plugin

GTM Kit imports settings from Google Tag Manager for WordPress, Google Tag Manager
for WooCommerce, Metronet Tag Manager and other GTM plugins, at any time, from the
Tools page. Your container ID, data layer variables, Consent Mode defaults, excluded
user roles and container environment come across in one step.

Before anything is written you see exactly which of your settings will be replaced,
and only settings the other plugin actually configured are touched.

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

### External services

#### Stape

If your server-side Google Tag Manager container is hosted on Stape, GTM Kit can
use the loader Stape issues for it. This is off by default. When you switch on «
Get the loader from Stape» under Server-side Tagging, GTM Kit asks Stape’s API (
api.app.stape.io, or api.app.eu.stape.io for containers in Stape’s EU region) for
the loader.

The request is sent only when you save a change to the settings the loader depends
on, or press «Refresh loader». It is never sent on a schedule or when a visitor 
views a page. It contains your sGTM container identifier, your GTM container ID,
your sGTM container domain, your data layer name and, when Cookie Keeper is on, 
the name of the Cookie Keeper cookie. No visitor data is sent.

Stape terms of service: https://stape.io/terms-conditions
 Stape privacy policy:
https://stape.io/privacy-notice

## Capturas

[⌊Escritorio de GTM Kit⌉⌊Escritorio de GTM Kit⌉[

Escritorio de GTM Kit

[⌊Setup: container code, server-side GTM, and page exclusions⌉⌊Setup: container 
code, server-side GTM, and page exclusions⌉[

Setup: container code, server-side GTM, and page exclusions

[⌊Events & data layer: post data and GA4 events⌉⌊Events & data layer: post data 
and GA4 events⌉[

Events & data layer: post data and GA4 events

[⌊Consent & privacy: Google Consent Mode and CMP script attributes⌉⌊Consent & privacy:
Google Consent Mode and CMP script attributes⌉[

Consent & privacy: Google Consent Mode and CMP script attributes

[⌊Commerce: WooCommerce and Easy Digital Downloads tracking⌉⌊Commerce: WooCommerce
and Easy Digital Downloads tracking⌉[

Commerce: WooCommerce and Easy Digital Downloads tracking

[⌊Tools: import settings from another Google Tag Manager plugin⌉⌊Tools: import settings
from another Google Tag Manager plugin⌉[

Tools: import settings from another Google Tag Manager plugin

[⌊Site Health: GTM Kit's checks for the container, consent, settings and tag serving⌉⌊
Site Health: GTM Kit's checks for the container, consent, settings and tag serving⌉[

Site Health: GTM Kit’s checks for the container, consent, settings and tag serving

## Instalación

 1. Instala GTM Kit a través del repositorio de plugins de WordPress.org o subiendo
    los archivos a tu servidor.
 2. Activa el plugin a través del menú «Plugins» en WordPress
 3. 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](https://tagmanager.google.com/).

### ¿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.](https://patchstack.com/database/vdp/gtm-kit)

## Reseñas

![](https://secure.gravatar.com/avatar/bbb6175a09141608e9cc4fd898495e118f73990c87d6d9a7154abd2f1eab6d03?
s=60&d=retro&r=g)

### 󠀁[A stable solution—for years](https://wordpress.org/support/topic/a-stable-solution-for-years/)󠁿

 [Dominik](https://profiles.wordpress.org/elexpress/) 23 de abril de 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.

![](https://secure.gravatar.com/avatar/ef434f98845c6cca000d1eb979c22165da771b9222acaced3163384727aa96c7?
s=60&d=retro&r=g)

### 󠀁[Don’t waste your time with this plugin](https://wordpress.org/support/topic/dont-waste-your-time-with-this-plugin-8/)󠁿

 [tomaszubrik](https://profiles.wordpress.org/tomaszubrik/) 21 de enero de 2026 
1 respuesta

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.

![](https://secure.gravatar.com/avatar/305cd0595d53c493138eed8d7aabe7c90c8257c2ea09865612a03502281e7280?
s=60&d=retro&r=g)

### 󠀁[Great Plugin requirements full filled!](https://wordpress.org/support/topic/great-plugin-requirements-full-filled/)󠁿

 [vinnyrajput](https://profiles.wordpress.org/vinnyrajput/) 23 de enero de 2025

Easy to configure, effective and support is helpful.

![](https://secure.gravatar.com/avatar/01b291c8a5a1b681850e93eea8b8c0c469fe61917926f1fd465fb26084900314?
s=60&d=retro&r=g)

### 󠀁[Astonishing](https://wordpress.org/support/topic/astonishing-13/)󠁿

 [bluantinoo](https://profiles.wordpress.org/bluantinoo/) 16 de octubre de 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.

![](https://secure.gravatar.com/avatar/9e835600044ca5078fa0e0989df4bfda93f42fa33b8bc1cd517d6ade3088203c?
s=60&d=retro&r=g)

### 󠀁[Great Plugin – Great Support](https://wordpress.org/support/topic/great-plugin-great-support-1927/)󠁿

 [shopmaster](https://profiles.wordpress.org/serdarozbilen/) 26 de septiembre de
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.

![](https://secure.gravatar.com/avatar/3bbd22ffa78a108e239e2bbd59b34bb3614b35b289e7279bc9a014c45d4560ab?
s=60&d=retro&r=g)

### 󠀁[Works great, exceptional good service](https://wordpress.org/support/topic/works-great-exceptional-good-service/)󠁿

 [Mooren](https://profiles.wordpress.org/mooren/) 16 de julio de 2024

Fantastic service after we experienced an issue in our network setup.

 [ Leer todas las 20 reseñas ](https://wordpress.org/support/plugin/gtm-kit/reviews/)

## 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

 *   [ TLA Media ](https://profiles.wordpress.org/tlamedia/)
 *   [ Torben Lundsgaard ](https://profiles.wordpress.org/torbenlundsgaard/)
 *   [ GTM Kit ](https://profiles.wordpress.org/gtmkit/)

«GTM Kit – Google Tag Manager & GA4 integration» está traducido en 4 idiomas. Gracias
a [los traductores](https://translate.wordpress.org/projects/wp-plugins/gtm-kit/contributors)
por sus contribuciones.

[Traduce «GTM Kit – Google Tag Manager & GA4 integration» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/gtm-kit)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/gtm-kit/) , echa un
vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/gtm-kit/) o suscríbete
al [registro de desarrollo](https://plugins.trac.wordpress.org/log/gtm-kit/) por
[RSS](https://plugins.trac.wordpress.org/log/gtm-kit/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 2.23.1

Release date: 2026-11-02

Find out about what’s new in [our release post](https://gtmkit.com/changelog/gtm-kit-2-23/).

#### Bugfixes:

 * With «Just the container» turned on, GTM Kit outputs the Google Tag Manager container
   again. It was left out of the page, so no tags fired.

#### 2.23.0

Release date: 2026-10-27

Find out about what’s new in [our release post](https://gtmkit.com/changelog/gtm-kit-2-23/).

#### New:

 * The GTM Kit settings screen now checks that your browser can reach your site’s
   settings API when it opens, and shows a notice if it cannot, if your site answers
   with an error, or if it is slow to answer. The notice explains the usual causes,
   such as a browser extension, ad blocker, VPN or firewall, and lets you copy the
   details for support. The check talks only to your own site and sends nothing 
   anywhere else.

#### Other:

 * The event deferral warning in the settings, shown when GTM Kit cannot see a consent
   state, now names the two fixes that work with a consent banner running inside
   Google Tag Manager: the GTM Kit consent bridge tag in the container, or a consent
   plugin that supports the WP Consent API. It no longer suggests turning on Consent
   Mode.

#### 2.22.0

Release date: 2026-10-13

Find out about what’s new in [our release post](https://gtmkit.com/changelog/gtm-kit-2-22/).

#### New:

 * Consent set by a consent platform that runs inside Google Tag Manager can now
   reach GTM Kit’s purchase consent check through GTM Kit’s consent bridge template,
   which you can add to your container from the Template Assistant. The template
   reports the visitor’s consent state to GTM Kit through Google Tag Manager’s documented
   template interfaces.
 * System data you share with GTM Kit support now includes the installed versions
   of GTM Kit Premium and the GTM Kit Woo Add-On, so support can see which build
   a site runs. The anonymised site data is unchanged.

#### Bugfixes:

 * Product variations loaded over admin-ajax, which some themes use instead of the
   WooCommerce variation form, now carry the tax-resolved price GTM Kit adds to 
   every variation, so the variation events those themes send report the same price
   as the rest of the data layer.

#### Other:

 * Add-ons can now add data stored on a cart line or an order line to the items 
   of the cart, checkout and purchase events through two new filters that receive
   the WooCommerce line next to the item.
 * The cart tracking for WooCommerce blocks now keeps the last reported cart in 
   one shared place (window.gtmkit.wc.cartSnapshot), so a cart change another script
   has already recorded there is not reported again by the block tracking.

#### 2.21.0

Release date: 2026-10-06

Find out about what’s new in [our release post](https://gtmkit.com/changelog/gtm-kit-2-21/).

#### New:

 * AI assistants connected to your site through the WordPress Abilities API can 
   now read how GTM Kit is set up, which consent defaults apply, and whether tracking
   is healthy. Only administrators can use them, nothing can be changed through 
   them, and they send nothing off your site.
 * If you use the loader Stape issues but GTM Kit has none stored for your site,
   the GTM Kit dashboard now tells you that your pages use the standard loader and
   how to get Stape’s loader back with Refresh.

#### Bugfixes:

 * If the Google tag gateway is switched on while a custom server-side tagging domain
   is set, the GTM Kit dashboard now says the two cannot be used together and how
   to choose between them, instead of reporting that the gateway is not working.
   The settings screen explains why one of the two is unavailable only while it 
   is.
 * Site Health no longer reports that consent is configured when the Consent Mode
   defaults deny analytics and no consent platform was found to grant it, a setup
   where every visitor is measured without cookies. It now recommends adding a consent
   platform or changing the defaults, and the Consent settings page shows the same
   warning.
 * Site Health no longer says consent is not configured when the Consent Mode defaults
   are off because a consent integration, such as one using the WP Consent API, 
   sets and updates the visitor’s consent.
 * Importing settings from GTM4WP no longer sets a server-side tagging domain when
   GTM4WP loads the container from a custom path, which produced a loader address
   that did not serve your container. The import now says the domain was skipped.

#### Other:

 * On stores with a classic theme, shop, product and category pages without WooCommerce
   blocks no longer load GTM Kit’s block tracking script, so those pages load less
   JavaScript. Pages that show a WooCommerce block anywhere, including a Mini Cart
   in a widget area, still load it, and block themes are unchanged.
 * If you send customer details with the purchase event and use Consent Mode, GTM
   Kit now adds the email, phone, name and address, hashed or not, only once the
   visitor has granted both advertising storage and advertising user data consent.
   If consent is denied, or a denying default has not been lifted within three seconds,
   the purchase is still sent, without those details. GTM Kit reads consent from
   its own data layer, from `dataLayer` if that is a different one, and from the
   consent state Google Tag Manager holds, so consent a consent platform sets through
   its Google Tag Manager template counts too. A denial in any of them withholds
   the details. If GTM Kit finds no consent state at all within three seconds, it
   sends the details, as it did before, and a developer can make GTM Kit withhold
   them in that case with a filter.

#### Earlier versions

Para consultar el registro de cambios de versiones anteriores, consulta [el registro de cambios en gtmkit.com](https://gtmkit.com/changelog/).

## Meta

 *  Versión **2.23.1**
 *  Última actualización **hace 7 días**
 *  Instalaciones activas **30.000+**
 *  Versión de WordPress ** 6.9 o superior **
 *  Probado hasta **7.1.4**
 *  Versión de PHP ** 7.4 o superior **
 *  Idiomas
 * [Danish](https://da.wordpress.org/plugins/gtm-kit/), [English (US)](https://wordpress.org/plugins/gtm-kit/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/gtm-kit/), [Spanish (Spain)](https://es.wordpress.org/plugins/gtm-kit/)
   y [Turkish](https://tr.wordpress.org/plugins/gtm-kit/).
 *  [Traducir a tu idioma](https://translate.wordpress.org/projects/wp-plugins/gtm-kit)
 * Etiquetas:
 * [analytics](https://es.wordpress.org/plugins/tags/analytics/)[ga4](https://es.wordpress.org/plugins/tags/ga4/)
   [google tag manager](https://es.wordpress.org/plugins/tags/google-tag-manager/)
   [gtm](https://es.wordpress.org/plugins/tags/gtm/)[woocommerce](https://es.wordpress.org/plugins/tags/woocommerce/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/gtm-kit/advanced/)

## Valoraciones

 4.8 de 5 estrellas.

 *  [  19 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/gtm-kit/reviews/?filter=5)
 *  [  0 valoraciones de 4 estrellas     ](https://wordpress.org/support/plugin/gtm-kit/reviews/?filter=4)
 *  [  0 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/gtm-kit/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/gtm-kit/reviews/?filter=2)
 *  [  1 valoración de 1 estrellas     ](https://wordpress.org/support/plugin/gtm-kit/reviews/?filter=1)

[Tu valoración](https://wordpress.org/support/plugin/gtm-kit/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/gtm-kit/reviews/)

## Colaboradores

 *   [ TLA Media ](https://profiles.wordpress.org/tlamedia/)
 *   [ Torben Lundsgaard ](https://profiles.wordpress.org/torbenlundsgaard/)
 *   [ GTM Kit ](https://profiles.wordpress.org/gtmkit/)

## Soporte

Problemas resueltos en los últimos dos meses:

     1 de 1

 [Ver el foro de soporte](https://wordpress.org/support/plugin/gtm-kit/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](https://github.com/tlamedia/gtm-kit)