demo · v130
Attribution Scopes simulator
Pick the scopes on a registered source, pick one or more scopes on a conversion trigger, and see whether the browser would attribute the conversion. This is a client-side simulation of the new attribution_scopes field.
requires the Attribution Reporting API
Live attribution requires Privacy Sandbox enabled and the Attribution Reporting Origin Trial. The simulator below recreates the scope-matching logic from the spec so you can explore the semantics without a server.
Source registration: attribution_scopes
Trigger registration: attribution_scopes (array)
result
the code
// Source registration (Attribution-Reporting-Register-Source)
{
"source_event_id": "1234",
"destination": "https://shop.example",
"attribution_scopes": {
"limit": 3,
"values": ["campaign-shoes", "campaign-bags"]
}
}
// Trigger registration (Attribution-Reporting-Register-Trigger)
{
"event_trigger_data": [{ "trigger_data": "7" }],
"attribution_scopes": ["campaign-shoes", "campaign-hats"]
}