PolyCMS Plugin: Google Analytics
Overview
The Google Analytics plugin injects your tracking code into the PolyCMS frontend. It supports both GA4 (Google Analytics 4) and Universal Analytics (legacy).
Activation
- Navigate to Blog > Plugins.
- Find Google Analytics and click Activate.
- Click Settings to configure your tracking code.
Configuration
GA4 (Recommended)
Enter your GA4 Measurement ID (format: G-XXXXXXXXXX):
- Go to Google Analytics.
- Navigate to Admin > Data Streams > Web.
- Copy the Measurement ID.
- Paste into the plugin settings field.
Universal Analytics (Legacy)
Enter your UA Tracking ID (format: UA-XXXXXXXX-X).
Note: Google has sunset Universal Analytics. New implementations should use GA4.
Script Placement
Choose where the tracking script is injected:
| Placement | Description |
|---|---|
| Header | Loads in <head> — ensures tracking fires before page content renders |
| Footer | Loads before </body> — slightly faster page load, minimal tracking delay |
Recommendation: Use Header placement for accurate page view tracking.
What Gets Tracked
Once configured, Google Analytics automatically tracks:
- Page views across all frontend pages
- User sessions and bounce rates
- Traffic sources and referrers
- Geographic and device data
- Custom events (if configured in GA4)
Verification
After activation, verify tracking is working:
- Open your blog frontend in a browser.
- View page source and search for your Measurement ID.
- Check Google Analytics Realtime reports for active users.
Related Documentation
- Plugin Management — Activate and configure plugins.
- SEO Configuration — Complementary SEO settings.
Launch Your CMS for Perfex CRM — Lifetime Access for Just $19
Create blogs, pages, themes, plugins, and manage everything from one powerful unified admin panel.
Early Adopter Advantage
Current pricing reflects the module’s present feature set. As additional plugins, themes, multilingual capabilities, builders (MTBuilder), and ecosystem integrations are released, pricing may be adjusted. Early customers secure today’s price while benefiting from future updates.