Add Reading Time and Post Details to Your Data Layer with GTM4WP and AI
Reading time, word count, dates, categories or authors in your Tag Manager data layer, turned on after your yes and checked on a post.
Works with AI · Verified on v2.1.1
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.
One connection gives your assistant structured, permission-checked access to the whole site.
Which containers load and where, what GTM4WP flags as wrong, and what personal data the data layer exposes.
Your container ID checked, saved after your yes and confirmed on your live home page.
GA4 ecommerce events from WooCommerce switched on and checked on a product page.
The container switched off for staff roles while they are logged in.
Reading time, word count, dates and categories added to the data layer for GA4 reports.
Paste any of these into Claude or ChatGPT once GTM4WP is connected.
Add the free WPVibe plugin from WordPress.org to the site running GTM4WP.
Claude, ChatGPT, Cursor, and more. One click to authorize, and no passwords ever go in the chat.
“Check my Google Tag Manager setup. Don't change anything.”
Copy-paste playbooks, each one tested on a live GTM4WP install before it ships.
Reading time, word count, dates, categories or authors in your Tag Manager data layer, turned on after your yes and checked on a post.
Your own and your team's logged-in visits kept out of Google Tag Manager, by role, after your yes.
GA4 ecommerce events from your WooCommerce store in the data layer, switched on after your yes and checked on a product page.
Your GTM container ID checked, saved in GTM4WP after your yes, and confirmed on your live home page.
Which containers load and where, what GTM4WP flags as wrong, and what personal data your data layer exposes, in one read-only report.
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 |
Behavior the ability descriptions do not mention.
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.