Configures the built-in integration with Google Analytics
To capture player events in a Google Analytics account, Google Analytics must be implemented on same page as the player.
"ga": {
"label": "mediaid",
"useUniversalAnalytics": false,
"sendEnhancedEvents": true
}
Property | Description |
---|---|
label string | Defines the playlist property to use as the event label in Google Analytics, such as title or mediaid
Default: file
|
sendEnhancedEvents 8.27.0+ boolean | (Google Analytics 4) Determines if enhanced measurement values and naming are returned for the events
Possible Values:
|
trackerName 8.9.0+ string | (Universal Analytics) When using an analytics.js Google Analytics implementation, the name of a user-generated custom tracker which segments player events that appear in reporting
Custom trackers are not supported for gtag.js (Google Analytics 4) implementations. |
useUniversalAnalytics 8.27.0+ boolean | Specifies the version of the on-page Google Analytics implementation
Possible Values:
|
When using a Universal Analytics implementation, an empty ga object (
"ga":{}
) can be defined. All default values will be set.