Google Analytics
Site | URL |
---|---|
Website | |
Documentation | PXP implements two options that can be implemented on the web. These are:
|
Platform | URL |
---|---|
Android | not supported |
iOS | not supported |
Web | PXP implements two options that can be implemented on the web. These are:
|
(*) Available since PXP 3.7.0
(**) Available since PXP 4.0.0
Overview of the supported events and their configuration.
| Templates | Parameter |
---|---|---|
Actions | action label category | not supported |
Views | name title* | not supported |
Purchases and Attributes are not supported.
(*) The title template is used by Google Tag Manage only.
The tracking service key name in "tracking_config.json" is: "google_analytics"
Google Analytics 4 / Google Tag Manager supports action events.
Google Analytics 4 / Google Tag Manager supports view events.
Google Analytics 4 / Google Tag Manager does not support purchase events.
Google Analytics 4 / Google Tag Manager does not support attributes.
No additional functionality is currently supported.
Google Analytics does not provide a standalone native integration. To use Google Analytics in your native apps, you must do so through Firebase .
Since there is no native SDK available in the apps, there is no ATT-controlled behaviour.
Since there is no native SDK available in the apps, there is no CMP-controlled behaviour.
Deprecated configuration of Google Analytics 4 for Web. This configuration will be removed soon.
Starting with PXP 3.7.0, the configuration of Google Analytics 4 is preferably done via "experience.config.json", as described in the "Enable SDK" section below.
Settings location
"Your app" => "Consent/Push/Analytics" => "Analytics (General/Web)"
Setting | Description |
---|---|
Enable Google Analytics 4 | To enable the Google Analytics 4 SDK on the web, activate this checkbox. |
Google Analytics 4 Measurement ID | The measurement id. |
Have a look at our screenshot based setup guide: Set Up Google Analytics 4
Google Analytics is not explicitly enabled. If a valid configuration of Google Analytics is present in the "experience.config.json", the SDK is integrated into the HTML document. This can be either done as Google Analytics 4 or as Google Tag Manager. The corresponding configurations differ as follows:
Structure in experience.config.json
Google Analytics 4
Setting | Description |
---|---|
measurementId | Measurement id of your connected GA4. |
Google Tag Manager
Setting | Description |
---|---|
useTagManager | Enables the Google Tag Manager instead of Google Analytics 4 |
addNoScript | Add the noscript iframe element to the body-element. Default is "false" |
containerId | The id of the connected container. |
If you use one of the CMPs supported by Purple, you must specify the CMP-specific vendor id for Google Analytics, which you can get from your CMP frontend. Additionally, the IAB vendor id for Google Analytics can also be added.
Structure in experience.config.json
Setting | Description |
---|---|
vendorId | The vendor ID managed by your CMP. |
iabVendorId | The vendor ID managed by IAB. |