Configure views for tracking
Purple Experience
In the Purple Experience Builder, any view of the views.json will trigger two tracking events:
1) the view event STOREFRONT_<VIEWNAME>
2) the Action Event of opening the view STOREFRONT_VIEW_<VIEWNAME>
We fire two events to ensure that any tracking provider will be able to get all the necessary data. To make one or both events appear on your 3rd Party tracking provider, follow the documentation in Tracking Configuration for your desired provider. If you do not map this accordingly, the data will not appear.
Mostly, you'll want to know more than just the view name. So, you need to add view tracking parameters. To achieve that, navigate to your views.json and add them:
Tracking Parameters are defined as keys and values, we are not limiting your chose of keys in any way. Per convention, all tracking parameters are capitalised and blanks are substituted with underscores. We'll convert those, but we recommend setting them up like that in the first place.
If you require computed data, we recommend that you compute any required data within the URL resolver to ensure early availability. Please note that some data may not be available from the SSR, i.e. it is not possible to know if a user has purchased content from there.
Any value in the viewTrackingParams must be of type STRING.
When you have configured everything according to your liking, it's time to verify proper execution. Please refer to Logging raw events to check the event emitted from purple experience.
As soon as this works as expected, you must map the events to your desired 3rd Part Analytics tool. See Tracking Configuration and Tracking Services for details.