Check Your Google Tag Manager Setup with GTM4WP and AI
Which containers load and where, what GTM4WP flags as wrong, and what personal data your data layer exposes, in one read-only report.
Prerequisites
A site connected to WPVibe running GTM4WP (Google Tag Manager for WordPress) 2.1 or newer (tested on 2.1.1, free) on WordPress 6.9 or newer (tested on 7.1.4), with an administrator account.
My WordPress site uses GTM4WP (Google Tag Manager for WordPress). Check my Google Tag Manager setup. Read only: do not change anything. 1. Run discover_abilities with category gtm4wp. If the ability this needs is not there, stop and tell me to install or update the free GTM4WP plugin (Google Tag Manager for WordPress, 2.1 or newer, on WordPress 6.9 or newer), or that the site may have switched GTM4WP's abilities off. 2. Run gtm4wp/get-status. Tell me in plain words: which container IDs load (and whether any uses an environment, a custom domain or a custom path); where the second, noscript part of the container code goes, since the main code is always in the head (footer works with every theme but Google Search Console cannot verify the site through Tag Manager; body_open_auto puts it right after the opening body tag and needs a theme that supports wp_body_open; body_open_manual needs a line of code in the theme; off means no container at all, only the data layer); the data layer name if it is not dataLayer; and, if hardcoded active is true, that some of these are set in wp-config.php and can only be changed there. If suppressed_on_environment is not empty, the container is switched off on this environment: say so. Explain every item under problems in plain words. 3. Run gtm4wp/get-site-health and explain any test whose status is not good. 4. In the modules from step 2, look at the ones with an integration (WooCommerce, Contact Form 7, Easy Digital Downloads). If the other plugin is active and the module is not enabled, say its tracking is available but off. If the module is enabled and the plugin is not active, say it does nothing. 5. Run gtm4wp/get-settings with keys include-useremail, include-username, include-userid, include-userregdate, include-visitor-ip, include-miscgeo-cloudflare, include-searchdata, include-postmeta, include-postmeta-keys, gtm-no-gtm-for-logged-in and gtm-production-only, plus integrate-woocommerce-customer-data and integrate-woocommerce-order-data if WooCommerce is active, and integrate-edd-customer-data and integrate-edd-order-data if Easy Digital Downloads is active, and integrate-wpcf7 and integrate-wpcf7-inputs if Contact Form 7 is active. Every key except include-postmeta-keys, gtm-no-gtm-for-logged-in, gtm-production-only, integrate-wpcf7 and integrate-wpcf7-inputs puts personal or private data into the page's data layer when on, where any tag in the container can read it: list the ones that are on and what each exposes. include-postmeta with include-postmeta-keys empty publishes every custom field whose name does not start with an underscore, in the page source, where any visitor can read it. If integrate-wpcf7 is on and integrate-wpcf7-inputs is full, every value visitors type into a Contact Form 7 form (names, emails, messages) goes into the data layer when they submit it: say so, and that names or none keeps the values out. Tell me which user roles the container is switched off for, if any, and whether it loads only on production. 6. Run get_page_html for my home page and look for each container ID from step 2 (the answer can be cut short: read on with offset until you find it or reach the end). Say which ones are on the page a logged-out visitor gets. If one is missing, first look at container_code_output from step 2: false means the placement is off or the container is switched off for this environment, which explains it. If it is true, say a page cache may be serving an older copy, or code on the site may switch the container off with GTM4WP's gtm4wp_output_container filter, which the status does not show. 7. Finish with what is working, what needs attention, and the one thing to fix first.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Check Your Google Tag Manager Setup with GTM4WP and AI” recipe from the WPVibe cookbook on my connected site.
Tag Manager was set up once, maybe by someone who has since left, and nobody has looked at it since. Is the container loading on every page? Is it the right one? Is the site quietly putting visitors’ email addresses into a data layer every tag can read? Checking means clicking through a long settings screen you don’t fully understand.
The AI reads GTM4WP’s own status and Site Health checks, the settings that put personal data into the page, and your home page as a visitor gets it. It tells you which containers load and where, what the plugin flags as wrong, which store and form integrations are on or missing, and the one thing to fix first. It changes nothing.
Paste the prompt as it is. The page check reads the copy a logged-out visitor gets, so a page cache can show an older copy: clear it if the report and the settings disagree. To add or replace a container, use this recipe.
Outcome
A short report of what your Tag Manager setup loads, what is wrong with it and what to fix first, with nothing changed.