Traffic Segmentation
Shield dashboards can segment and aggregate data based on URL query parameters or custom fields provided via the JavaScript API. This enables performance analysis across partner, traffic source, campaign, referrer, APK, or any other dimension you pre-define.
Avoid aggregating URL parameters with very high cardinality or unique values, as this will degrade dashboard performance and won't provide any value.
Implementation
Service onboarding
Configure the data fields you want to track when setting up your service.
URL parameters
To pass traffic source identifiers via URL query parameters, include them as query strings. For example, the traffic_id parameter distinguishes traffic sources:
https://landing.page/service3?traffic_id=34&cid=65https://landing.page/service3?traffic_id=99&cid=11
JavaScript API
When you retrieve the Shield JavaScript snippet using the JS API, the configured custom fields are automatically parsed from the lpu URL parameters.
Alternatively, pass custom data directly via the custom parameter in your API call.