{
"description": "Max reporting origins per source site and reporting site",
"input": {
"registrations": [
{
"timestamp": "0",
"registration_request": {
"context_origin": "https://source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://reporter.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"source_event_id": "111",
"debug_reporting": true
}
}
}
]
},
// Will be registered as the reporting site is different.
{
"timestamp": "1",
"registration_request": {
"context_origin": "https://source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://another-reporter.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"source_event_id": "222",
"debug_reporting": true
}
}
}
]
},
// Will be registered as the source site is different.
{
"timestamp": "2",
"registration_request": {
"context_origin": "https://another-source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://a.reporter.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"source_event_id": "333",
"debug_reporting": true
}
}
}
]
},
// Will result in an event-level report.
{
"timestamp": "1000",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://another-reporter.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "1"
}
]
}
}
}
]
},
// Will result in an event-level report.
{
"timestamp": "1001",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://a.reporter.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "2"
}
]
}
}
}
]
},
// Will not be registered due to the limit.
{
"timestamp": "86399999",
"registration_request": {
"context_origin": "https://b.source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://b.reporter.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"source_event_id": "444",
"priority": "1",
"debug_reporting": true
}
}
}
]
},
// Will be registered as one day has passed.
{
"timestamp": "86400000",
"registration_request": {
"context_origin": "https://b.source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://b.reporter.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"source_event_id": "555",
"debug_reporting": true
}
}
}
]
},
// Will result in an event-level report.
{
"timestamp": "86401000",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://b.reporter.test/register-trigger",
"response": {
"Attribution-Reporting-Register-Trigger": {
"event_trigger_data": [
{
"trigger_data": "4"
}
]
}
}
}
]
}
]
},
"output": {
"reports": [
{
"payload": [
{
"body": {
"attribution_destination": "https://destination.test",
"source_event_id": "111",
"source_site": "https://source.test"
},
"type": "source-success"
}
],
"report_time": "0",
"report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": [
{
"body": {
"attribution_destination": "https://destination.test",
"source_event_id": "222",
"source_site": "https://source.test"
},
"type": "source-success"
}
],
"report_time": "1",
"report_url": "https://another-reporter.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": [
{
"body": {
"attribution_destination": "https://destination.test",
"source_event_id": "333",
"source_site": "https://another-source.test"
},
"type": "source-success"
}
],
"report_time": "2",
"report_url": "https://a.reporter.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": [
{
"body": {
"attribution_destination": "https://destination.test",
"source_event_id": "444",
"limit": "1",
"source_site": "https://source.test"
},
"type": "source-reporting-origin-per-site-limit"
}
],
"report_time": "86399999",
"report_url": "https://b.reporter.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": [
{
"body": {
"attribution_destination": "https://destination.test",
"source_event_id": "555",
"source_site": "https://source.test"
},
"type": "source-success"
}
],
"report_time": "86400000",
"report_url": "https://b.reporter.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": {
"attribution_destination": "https://destination.test",
"randomized_trigger_rate": 0.0024263,
"scheduled_report_time": "172800",
"source_event_id": "222",
"source_type": "navigation",
"trigger_data": "1"
},
"report_time": "172800001",
"report_url": "https://another-reporter.test/.well-known/attribution-reporting/report-event-attribution"
},
{
"payload": {
"attribution_destination": "https://destination.test",
"randomized_trigger_rate": 0.0024263,
"scheduled_report_time": "172800",
"source_event_id": "333",
"source_type": "navigation",
"trigger_data": "2"
},
"report_time": "172800002",
"report_url": "https://a.reporter.test/.well-known/attribution-reporting/report-event-attribution"
},
{
"payload": {
"attribution_destination": "https://destination.test",
"randomized_trigger_rate": 0.0024263,
"scheduled_report_time": "259200",
"source_event_id": "555",
"source_type": "navigation",
"trigger_data": "4"
},
"report_time": "259200000",
"report_url": "https://b.reporter.test/.well-known/attribution-reporting/report-event-attribution"
}
]
}
}