HyIMPACT plugin: Google module

This guide is part of the docs for HyIMPACT for WordPress, the plugin that connects your AI to your site.

What it does today. HyIMPACT → Google tags adds Google tags to the site by ID, with no Google sign-in:

  • GA4 measurement ID, extra Google tag IDs (G-/GT-), Google Ads conversion ID (AW-): one gtag.js loader.
  • Google Tag Manager container (GTM-), with its <noscript> part (left out while the consent default is “denied”).
  • Search Console verification (meta tag, or the HTML file served at the site root) and Bing verification, on the front page.
  • Optional Consent Mode v2 default: every signal “denied” until the cookie banner (through the WP Consent API) grants it. Printed first in <head>.
  • Skips administrators and editors by default, admin pages, feeds, REST, previews, ?tagverify=1 and non-production sites. IDs that Site Kit, Rank Math or Complianz already print are skipped, so nothing counts twice.

Conversion events. While the module is live, HyIMPACT sends form submissions (Contact Form 7, WPForms, Gravity Forms, Fluent Forms, Ninja Forms, Formidable, Elementor Pro forms), phone, email, SMS and WhatsApp link clicks (contact_link_click, never the number or address), WooCommerce’s view_item, add_to_cart, begin_checkout and purchase, and ai_referral when a visit comes from ChatGPT, Perplexity, Gemini, Copilot, Claude or another AI assistant. Enhanced conversions are optional and off by default.

PageSpeed Insights. Runs Google’s PageSpeed Insights on the site’s own pages, mobile and desktop: the scores, Core Web Vitals, the LCP element, the biggest savings and real-user data, with the site’s own API key.

Not switched on yet. Google sign-in and what builds on it (Search Console data and URL inspection, GA4 and Tag Manager set-up and reports, read-only Google Ads, and the Insights dashboard) are in the plugin but stay off until the HyIMPACT connect service opens. A later release switches them on.

Modes. The module’s mode is the switch: live prints the tags, shadow prints nothing but previews what live would print, off prints nothing. While Site Kit or another tag plugin is active, live runs as shadow unless forced, and forced live still skips every ID that plugin prints.

Settings (hyimpact_google): ga4_id, gtag_ids, ads_id, gtm_id, gsc_meta, gsc_files, bing_meta, consent_mode (off | denied), ads_data_redaction, url_passthrough, exclude_roles, non_production, events, event_names, ads_labels, enhanced_conversions, ai_referrals, ai_referrers. Invalid IDs are refused with a message; the rest of the form still saves.

Abilities. google-get-tags (settings, what will print, a <head> preview, the events), google-set-tags (validated partial update), google-check-tags (fetches the live homepage and reports which IDs appear), google-import-scan and google-import-run (Site Kit’s set-up), google-psi-run and google-psi-results; settings-get / settings-set with module: google work on the same settings.

Replaces. Site Kit by Google (tags, verification and conversion events), GTM4WP, MonsterInsights, GA Google Analytics, Google Analytics for WooCommerce. While one of them is active the module can’t go live (shadow at most) unless forced.

When to switch the old plugin off. Site Kit, on a site that relies on it for form conversions: in the same approved change, import from Site Kit (or turn HyIMPACT’s conversion events on with Site Kit’s event names), set the module live, then deactivate Site Kit, and check the key events arrive in GA4 Realtime. A plugin that only prints the GA4 or GTM tag can go once HyIMPACT prints the same IDs and google-check-tags confirms them on the live page. Each switch-over is its own approved change, and the site’s tracking is verified afterwards.