How to Connect Google Analytics
WP Media Player can forward video events — views, plays, pauses, seeks, and completions — to your own Google Analytics 4 property. This feature is opt-in and uses your own measurement ID. No data is sent to CodeConfig or any third-party analytics service.
Enable Google Analytics
Go to WP Media Player > Settings > Analytics. Scroll to the Google Analytics section. Toggle Enable Google Analytics on.
Choose whether to use an existing GA tag on your site or add a new one:
- Use existing on-page tag: If you already have a GA4 tag on your site from another plugin or your theme, turn this on. WP Media Player will send events to that tag without injecting a second one.
- Measurement ID: If you do not have an existing tag, paste your GA4 measurement ID here. It starts with
G-followed by a string of characters — for example,G-XXXXXXXXXX. You can find it in your Google Analytics admin under Data Streams.
The forwarding sends six event types: view, play, pause, seek, progress, and ended. They arrive in your GA4 property as standard events that you can build reports and audiences from.
Privacy and Data Ownership
Google Analytics forwarding is off by default. When you turn it on, event data is sent from the viewer’s browser directly to Google’s servers using your measurement ID. The events — view, play, pause, seek, progress, ended — are standard GA4 events and do not include personal information unless you have configured GA to collect it.
WP Media Player’s own analytics remain stored in your WordPress database regardless of whether GA forwarding is enabled. The two systems operate independently.
What to Check
- The GA4 measurement ID is entered in the correct format (starts with
G-) - Events appear in the GA4 realtime report within a few minutes of a viewer interacting with a player
- The existing tag option is selected if you have another GA4 implementation on the site
Next Steps
With GA forwarding enabled, you can build audiences and conversion funnels in Google Analytics based on video engagement. For a complete picture of what your viewers are doing, combine GA data with WP Media Player’s own analytics dashboard — see how to enable and read video analytics.