WICG / attribution-reporting-api

Attribution Reporting API
https://wicg.github.io/attribution-reporting-api/
Other
347 stars 161 forks source link

Verifying Subdomain Conversion in Source Registration Tests #1350

Closed Dhiego777 closed 6 days ago

Dhiego777 commented 6 days ago

Good afternoon, we are doing a test and the request "/register-source?lineItemId=0&creativeId=138480547844&destination=https://ads.uol.com.br/" has the header with the destination "https://ads.uol.com.br", but when checking the json in the source registrations, located in "chrome://attribution-internals/", the destination is as "destination": "https://uol.com.br". We would like to know how we can check the conversion of subdomains in the case of "https://ads.uol.com.br"?

Below is the source header and the print of the source and trigger. Source Registrations:

{
    "source_event_id": "1719498091940",
    "destination": "https://ads.uol.com.br",
    "expiry": 2592000,
    "event_report_window": 3600,
    "priority": "0",
    "aggregation_keys": {
        "conversionCount": "0x203e14ab93"
    },
    "aggregatable_report_window": "86400",
    "filter_data": {
        "creativeId": [
            "138480495507"
        ]
    },
    "debug_key": "647775351539539",
    "debug_reporting": true
}

image

Trigger Registrations image

apasel422 commented 6 days ago

Here is a link to our header validator with your registration JSON.

Note the warning:

["destination"] URL components other than site (https://uol.com.br) will be ignored

dmdabbs commented 6 days ago

The explainer covers it also.

destination: Required. An origin whose site is where attribution will be triggered for this source. The field may also be specified as a list (JSON array) of no more than three elements.

As I understand it, if you trigger a conversion on "https://uol.com.br/" or any origin under that site, ARA should be able to perform the attribution to your example source.

Dhiego777 commented 6 days ago

Tks guys, this information helped a lot.