[null,null,[],[[["Learn how to register ad clicks and views as attribution sources for conversion measurement in Attribution Reporting API."],["Source registration involves initiating a request using HTML elements like `\u003ca\u003e`, `\u003cimg\u003e`, `\u003cscript\u003e` or JavaScript methods, followed by a server response containing the `Attribution-Reporting-Register-Source` header with reporting configurations."],["This header allows specification of contextual data, conversion destination, and parameters like `source_event_id`, `destination`, `expiry`, and `priority` to manage attribution data."],["`attributionsrc` attribute in HTML or the `attributionReporting` option in JavaScript are key for signaling source registration eligibility and triggering the process."],["This guide details the steps and code examples for click and view registration to enable accurate attribution of conversions to their respective sources."]]],["To register attribution triggers for conversion tracking, use HTML elements (`\u003cimg\u003e`, `\u003cscript\u003e`) or JavaScript calls (`fetch`, `XMLHttpRequest`) to initiate requests. Respond to these requests with the `Attribution-Reporting-Register-Trigger` header, specifying trigger data like `trigger_data`, `priority`, and `deduplication_key` within a JSON array, or `aggregatable_trigger_data`. The `attributionsrc` attribute is optional for HTML elements but is useful to make a separate request. For JavaScript calls the `attributionReporting` option is required. Ensure the origin of the request matches the source registration origin.\n"]]