WordPress plugin
GA Google Analytics Pro
GA Google Analytics Pro inserts Google Analytics tracking code on WordPress pages through add-on options. It includes the free version’s capabilities and adds controls for multiple codes, placement, previews, exclusions, and a user opt-out box. View site statistics in your Google Analytics account.
GA Google Analytics Pro inserts Google Analytics tracking code on WordPress pages through add-on options. It includes the free version’s capabilities and adds controls for multiple codes, placement, previews, exclusions, and a user opt-out box. View site statistics in your Google Analytics account.
Connect a GA4 account
- Create a Google Analytics 4 account and obtain its tracking, or measurement, ID.
- Enter the ID in the
GA Tracking IDsetting. - Select
GA4as the tracking method and save your changes.
The account must be active and properly configured. Collected data may take 24-48 hours to appear. GA4 is the recommended method. The add-on also lists Universal Analytics and Legacy Tracking, which Google has deprecated or disabled.
Set code placement and tracking scope
Configure multiple tracking codes, preview them, and pick where they appear. Tracking code can go in the header or footer and can be customized with your own markup. The plugin also works with tracking links and conversions through its Custom Code setting. It works with or without the Gutenberg Block Editor, and settings let you disable tracking for admin-level visitors or enable page tracking in the WordPress Admin Area.
Pro exclusions can disable tracking for all logged-in users or for selected post IDs, visitor roles, post types, search results, and post archives. The plugin’s listed tracking settings also include Display Advertising, Enhanced Link Attribution, IP Anonymization, Force SSL, Google Optimize, Consent Signals, and Tracker Objects for Universal Analytics.
Give visitors an opt-out control
The frontend opt-out box lets visitors opt in or out of Google Analytics tracking. Show it automatically or place it with a shortcode. The plugin uses cookies to remember the visitor’s preference. The plugin itself does not collect user data; its tracking code enables Google Analytics to collect data.
Install and verify tracking
Add the plugin to WordPress, activate it, and open its settings. Enter the GA4 measurement ID, choose GA4, configure the tracking and exclusion options you need, then save. To check whether the tracking code appears, inspect the source of a page. If it is missing, check that the theme includes the wp_head and wp_footer hooks, then clear the caching plugin’s cache. Site statistics appear in Google Analytics, not in WordPress. The Pro version also includes inline documentation and priority plugin help and support.