Brightcove Player Google Analytics Plugin v1.3.0
The Brightcove Player Google Analytics Plugin v1.3.0 is available.
Features
- Adds support for Google Analytics 4 and dual tagging Google Analytics 4 and Universal Analytics. This change is compatible with Brightcove Player 6. GA4 can be configured as follows:
{
"registry_id": "@brightcove/videojs-bc-ga",
"options": {
"paramsToTrackGA4": ["seconds_viewed","range","video_duration", "player", "session", ...],
"eventsToTrack": {
"video_impression": "Video Impression",
"play_request": "Play Request",
"video_engagement": "Video Engagement",
...
},
"trackerGA4": "GA-123456-1"
}
Dual tagging with GA4 and UA can be configured as follows:
{
"registry_id": "@brightcove/videojs-bc-ga",
"options": {
"paramsToTrack": {
"bcvideo_video_seconds_viewed": "dimension1",
"bcvideo_range": "dimension2",
"bcvideo_video_duration": "dimension3",
"bcvideo_player": "dimension4",
"bcvideo_session": "dimension5",
...
},
"paramsToTrackGA4": ["seconds_viewed","range","video_duration", "player", "session",...],
"eventsToTrack": {
"video_impression": "Video Impression",
"play_request": "Play Request",
"video_engagement": "Video Engagement",
...
},
"trackerGA4": "GA-123456-1",
"tracker": "UA-123456-1"
}
}