| { |
| "description": "2nd trigger with the same deduplication key is not attributed", |
| "input": { |
| "sources": [ |
| { |
| "timestamp": "1643235573000", |
| "registration_request": { |
| "source_origin": "https://source.test", |
| "attribution_src_url": "https://reporter.test/register-source", |
| "source_type": "navigation" |
| }, |
| "responses": [{ |
| "url": "https://reporter.test/register-source", |
| "response": { |
| "Attribution-Reporting-Register-Source": { |
| "destination": "https://destination.test", |
| "source_event_id": "123" |
| } |
| } |
| }] |
| } |
| ], |
| "triggers": [ |
| { |
| "timestamp": "1643235574000", |
| "registration_request": { |
| "attribution_src_url": "https://reporter.test/register-trigger", |
| "destination_origin": "https://destination.test" |
| }, |
| "responses": [{ |
| "url": "https://reporter.test/register-trigger", |
| "debug_permission": true, |
| "response": { |
| "Attribution-Reporting-Register-Trigger": { |
| "debug_reporting": true, |
| "event_trigger_data": [ |
| { |
| "trigger_data": "1", |
| "deduplication_key": "1" |
| } |
| ] |
| } |
| } |
| }] |
| }, |
| { |
| "timestamp": "1643235575000", |
| "registration_request": { |
| "attribution_src_url": "https://reporter.test/register-trigger", |
| "destination_origin": "https://destination.test" |
| }, |
| "responses": [{ |
| "url": "https://reporter.test/register-trigger", |
| "debug_permission": true, |
| "response": { |
| "Attribution-Reporting-Register-Trigger": { |
| "debug_reporting": true, |
| "event_trigger_data": [ |
| { |
| "trigger_data": "2", |
| "deduplication_key": "1" |
| } |
| ] |
| } |
| } |
| }] |
| }, |
| { |
| "timestamp": "1643235576000", |
| "registration_request": { |
| "attribution_src_url": "https://reporter.test/register-trigger", |
| "destination_origin": "https://destination.test" |
| }, |
| "responses": [{ |
| "url": "https://reporter.test/register-trigger", |
| "debug_permission": true, |
| "response": { |
| "Attribution-Reporting-Register-Trigger": { |
| "debug_reporting": true, |
| "event_trigger_data": [ |
| { |
| "trigger_data": "3", |
| "deduplication_key": "2" |
| } |
| ] |
| } |
| } |
| }] |
| }, |
| // Deduplicated as well after the report was sent. |
| { |
| "timestamp": "1643411974000", |
| "registration_request": { |
| "attribution_src_url": "https://reporter.test/register-trigger", |
| "destination_origin": "https://destination.test" |
| }, |
| "responses": [{ |
| "url": "https://reporter.test/register-trigger", |
| "response": { |
| "Attribution-Reporting-Register-Trigger": { |
| "event_trigger_data": [ |
| { |
| "trigger_data": "4", |
| "deduplication_key": "1" |
| } |
| ] |
| } |
| } |
| }] |
| } |
| ] |
| }, |
| "output": { |
| "event_level_results": [ |
| { |
| "payload": { |
| "attribution_destination": "https://destination.test", |
| "randomized_trigger_rate": 0.0024, |
| "scheduled_report_time": "1643411973", |
| "source_event_id": "123", |
| "source_type": "navigation", |
| "trigger_data": "3" |
| }, |
| "report_url": "https://reporter.test/.well-known/attribution-reporting/report-event-attribution", |
| "report_time": "1643411973000" |
| }, |
| { |
| "payload": { |
| "randomized_trigger_rate": 0.0024, |
| "attribution_destination": "https://destination.test", |
| "scheduled_report_time": "1643411973", |
| "source_event_id": "123", |
| "source_type": "navigation", |
| "trigger_data": "1" |
| }, |
| "report_url": "https://reporter.test/.well-known/attribution-reporting/report-event-attribution", |
| "report_time": "1643411973000" |
| } |
| ], |
| "verbose_debug_reports": [ |
| { |
| "payload": [ { |
| "body": { |
| "attribution_destination": "https://destination.test", |
| "source_event_id": "123", |
| "source_site": "https://source.test" |
| }, |
| "type": "trigger-event-deduplicated" |
| } ], |
| "report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose", |
| "report_time": "1643235575000" |
| } |
| ] |
| } |
| } |