WordPress plugin
GA Google Analytics Pro: WordPress and GA4 Tracking
GA Google Analytics Pro inserts Google Analytics tracking code into WordPress pages through its settings. It includes the free version’s functions and includes controls for multiple codes, placement, tracking coverage, and visitor opt-out show. Site statistics remain in your Google Analytics account.
GA Google Analytics Pro inserts Google Analytics tracking code into WordPress pages through its settings. It includes the free version’s functions and includes controls for multiple codes, placement, tracking coverage, and visitor opt-out show. Site statistics remain in your Google Analytics account.
Connect a GA4 property to WordPress
- Create a Google Analytics 4 account and obtain its tracking, or measurement, ID.
- Enter the ID in the GA Tracking ID setting.
- Select GA4 as the tracking method and save your changes.
Use an active, properly configured account. Collected data may take 24 to 48 hours to appear in Google Analytics, even when the tracking code is present on the page.
Placement controls determine where codes appear
Configure multiple tracking codes, preview them, and choose their locations. Add custom code in the header or footer, or personalize tracking code with your own markup. The Custom Code setting can also be used to track links and conversions.
Exclusions and opt-out controls limit tracking coverage
- Disable tracking for all logged-in visitors or exclude selected post IDs, visitor roles, and post types.
- Exclude search results and post archives.
- Add a frontend opt-out box that lets visitors opt in or out of Google Analytics tracking. Display it automatically or place it with a shortcode.
Inline help and documentation are available while you configure the plugin. The Pro version also includes priority extension help and support.
GA4 is recommended; older tracking methods are deprecated
The plugin lists GA4, Universal Analytics, and Legacy Tracking methods. GA4 is recommended; Universal Analytics and Legacy Tracking are identified as deprecated or disabled by Google. Additional tracking support includes Display Advertising, Enhanced Link Attribution, IP Anonymization, Force SSL, Google Optimize, Consent Signals, and Tracker Objects for Universal Analytics.
Tracking code can be included in the header or footer across WordPress pages. The plugin works with or without the Gutenberg Block Editor, can disable tracking for admin-level users, and has an option to enable page tracking in the WordPress Admin Area.
Check code output before troubleshooting data
Install and activate the plugin, configure its settings, then check a page’s source code to confirm that the tracking code appears. If it is missing, check that the theme includes the wp_head and wp_footer hooks, clear any caching plugin cache, and consider whether another plugin or theme is interfering. If the code appears but data has not arrived, allow 24 to 48 hours and confirm the ID belongs to an active, properly configured Google Analytics account.