Skip to main content

Works with AI · Verified on v2.1.1

GTM4WP logo

Manage Google Tag Manager with GTM4WP and AI

Connect GTM4WP to Claude, ChatGPT, or any AI assistant with WPVibe. Check your Tag Manager setup, add a container, turn on WooCommerce ecommerce tracking, skip your own visits and add post details to your data layer by asking in plain English.

700,000+ active installs 8 verified abilities Last verified Nov 9, 2026

What your AI can do with GTM4WP

One connection gives your assistant structured, permission-checked access to the whole site.

Setup check

Which containers load and where, what GTM4WP flags as wrong, and what personal data the data layer exposes.

Add a container

Your container ID checked, saved after your yes and confirmed on your live home page.

Store tracking

GA4 ecommerce events from WooCommerce switched on and checked on a product page.

Skip your own visits

The container switched off for staff roles while they are logged in.

Content data

Reading time, word count, dates and categories added to the data layer for GA4 reports.

Things to ask

Paste any of these into Claude or ChatGPT once GTM4WP is connected.

“Check my Google Tag Manager setup. Don't change anything.”
“Add my Tag Manager container GTM-ABC1234 to the site.”
“Turn on WooCommerce ecommerce tracking for GA4 in GTM4WP.”
“Stop Tag Manager loading when my team and I are logged in.”
“Add reading time and word count to my data layer.”

Up and running in three steps

1

Install WPVibe

Add the free WPVibe plugin from WordPress.org to the site running GTM4WP.

2

Connect your AI

Claude, ChatGPT, Cursor, and more. One click to authorize, and no passwords ever go in the chat.

3

Ask in plain English

“Check my Google Tag Manager setup. Don't change anything.”

Verified GTM4WP recipes

Copy-paste playbooks, each one tested on a live GTM4WP install before it ships.

Every GTM4WP ability

GTM4WP registers these with the WordPress Abilities API under the gtm4wp namespace. Your AI finds them with discover_abilities and calls them with run_ability. WPVibe asks for your approval only when an ability is marked destructive and deletes something or runs code; everything else runs as soon as your AI calls it. Verified means we ran it on a live install of v2.1.1. Registered means a fresh install of v2.1.1 ships it and we have not run it yet.

Requires GTM4WP 2.1 or newer on WordPress 6.9 or newer, with an administrator account. Its abilities register on their own, with no setting to turn on. Tested on GTM4WP 2.1.1 (free) with WooCommerce 11.2.1 on WordPress 7.1.4.

Ability What it does Access Status

Get the Tag Manager status

gtm4wp/get-status
The containers that load, where the container code goes, the data layer name, which modules and integrations are on, and the problems GTM4WP reports. Read Verified

Get its Site Health state

gtm4wp/get-site-health
GTM4WP's own Site Health tests and its rows on the Site Health Info tab, the state of every module. Read Verified

Get the settings

gtm4wp/get-settings
Every GTM4WP option, or a module's or a few by key, optionally with each one's label, description and choices, plus a fingerprint for safe changes. Read Verified

Export the settings

gtm4wp/export-settings
All settings as the same file the Export button downloads, to keep as a backup or copy to another site. Read Verified

Change settings

gtm4wp/update-settings
Changes the options it is sent and leaves the rest. Write Verified

Import settings

gtm4wp/import-settings
Replaces every GTM4WP option with an export's values. Write Verified

List Google service accounts

gtm4wp/get-service-accounts
The Google Cloud service accounts saved in GTM4WP, with their status. Read Verified

Get the Google Data Manager log

gtm4wp/get-google-data-manager-log
Recent refunds sent to Google Analytics from the server, and what became of each. Read Verified

What we learned testing it

Behavior the ability descriptions do not mention.

  • Changing and importing settings are marked destructive by GTM4WP, but WPVibe's approval page covers abilities that delete something or run code, so it does not show one for them. GTM4WP asks the AI to show old and new values and wait for your yes; the recipes do that. Read the change before you say yes.
  • Importing settings replaces every GTM4WP option, container IDs included, and options missing from the file go back to their defaults. It refuses to run without an explicit confirmation. Through WPVibe it needs WordPress 7.1 or newer to pass the confirmation, and since the whole export travels in the request address, GTM4WP warns a very large one can be refused by the web server. To change a few settings, ask for a change instead.
  • The container list is saved as a whole: a change that sends one container drops the others. The recipes send back every container you keep.
  • A change checks the settings have not been saved by someone else since they were read, but only when the AI passes the fingerprint get-settings returned. The recipes always pass it.
  • Settings set in wp-config.php (container IDs and environments) cannot be changed through the abilities; the status says which are locked.
  • The abilities that test a Google service account or a Google Data Manager destination, and send failed refunds again, use the Google service account key stored in GTM4WP. We could not test them without a Google Cloud account, so they are not listed here. GTM4WP does not mark them destructive, so WPVibe shows no approval page if an assistant calls them.
  • With the container placed after the opening body tag, a theme that does not support wp_body_open gets only the head part. The footer placement works with every theme but, as GTM4WP says, does not let Search Console verify the site through Tag Manager.
  • A role excluded from tracking gets no container at all while logged in, so Tag Manager's Preview mode only works for you logged out or in a private window.
  • Ecommerce tracking puts GA4 events into the data layer only. Your container needs GA4 event tags to send them on. In our test the purchase event fired once on the order received page and not again on reload.
  • Some options put personal data into the page's data layer: the visitor's email, user name, user ID or IP address, customer and order details on a store, every value visitors submit in Contact Form 7 forms when that integration is on (its default sends them all), and every public custom field when post meta is on with no list of keys.
  • A site owner can switch the abilities off, or keep them read-only, with GTM4WP's filters. The change abilities are then not offered, and the recipes send you to the settings screen.

Verified, and kept that way

Works with AI is WPVibe’s verification program. Every ability marked verified was run on a live GTM4WP install, and we rescan WordPress.org weekly so a release that adds or removes abilities shows up here before it surprises you.

Learn more about GTM4WP at gtm4wp.com.