On This Page
v 1.0.0
Last updated: 16/03/2026
Analytics Integration
Google Analytics 4 pageview tracking with consent-mode defaults, staging guards, role exclusions, and duplicate-snippet prevention.
Overview
Analytics Integration injects Google Analytics 4 (GA4) tracking code into your site’s frontend. Includes environment awareness (e.g. skip tracking on staging), privacy controls, and compliance features. Configure your GA4 Measurement ID, choose when to track, and ensure you don’t accidentally track development or staging environments. A valid license is required (premium module).

Who is this for?
Site owners who want to add GA4 tracking without a separate plugin, or those who need environment-aware tracking to avoid polluting analytics data.
Features
Google Analytics 4
Injects GA4 gtag.js with your Measurement ID. Standard GA4 tracking.
Environment Awareness
Can skip tracking on non-production environments (staging, local, etc.) when configured. Prevents test traffic from affecting analytics.
Privacy Controls
Options to respect user preferences and comply with privacy regulations.
Admin and REST Excluded
Tracking does not run in wp-admin or during REST/AJAX requests. Frontend only (when configured).
How It Works
1
Enable the Module
Go to WP PowerSuite, find "Analytics Integration," and click the Enable button. A valid license is required (premium module).
2
Configure Settings
Open the module settings. Enter your GA4 Measurement ID. Configure environment and privacy options. Save.
3
Verify
Visit your site's frontend. Check the page source or use browser DevTools to confirm the GA4 script is loaded. Use GA4 DebugView to verify events.

Performance Note
GA4 script is loaded asynchronously. Minimal impact on page load. Uses standard gtag.js from Google.
Installation & Activation
1
Install WP PowerSuite
Make sure the WP PowerSuite plugin is installed and activated on your site.
2
Enable the Module
Go to the WP PowerSuite menu, find "Analytics Integration" in the module list, and click the Enable button. A valid license is required for this premium module.
3
Configure Settings
Enter your GA4 Measurement ID. Set environment and privacy options. Save.

Requirements
PHP 8.1 or higher
WordPress 6.0 or higher
Permission to manage options (Administrator)
Valid WP PowerSuite license (premium module)
Google Analytics 4 property and Measurement ID
Use Cases
- GA4TrackingAdd GA4 tracking without a separate analytics plugin
- EnvironmentControlAvoid tracking staging/local development
- AnalyticsCentralizationCentralize GA4 configuration in WP PowerSuite
- PrivacyComplianceComply with privacy controls
Frequently Asked Questions
Where do I get my Measurement ID?
In Google Analytics 4: Admin → Data Streams → select your stream → copy the Measurement ID (format: G-XXXXXXXXXX).
Does this support GDPR consent?
The module includes privacy controls. For full consent management, use a dedicated consent plugin (e.g. Cookiebot) or implement your own consent check before enabling tracking.
Troubleshooting
- Tracking not appearingEnsure the module is enabled and you saved the Measurement ID. Check that you're on the frontend (not admin). Verify environment settings allow tracking on your current URL. Use GA4 DebugView to confirm.
