coderef

Attribution reportingLimited availability

The attribution reporting API measures when an ad click or view leads to a conversion, such as a purchase on an advertiser site.

Not yet supported in all major browsers — check the table and provide a fallback.

Discouraged: Following the announcement that Chrome will maintain its current approach to third-party cookies, Chrome decided to withdraw certain Privacy Sandbox features including the attribution reporting API.

Browser support

DesktopChrome
1–132Not supported
133+Supportedsince Feb 4, 2025
Current: 155
Edge
12–132Not supported
133+Supportedsince Feb 6, 2025
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–132Not supported
133+Supportedsince Feb 4, 2025
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: attributionSrc.

Feature detection

JS · check before using
if ("fetch" in globalThis && "options_parameter" in fetch.prototype) {
  // fetch.options_parameter is available
}

Sub-features

Support for each part of the feature (18). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
HTMLAnchorElement.attributionSrc125125✕✕125✕✕
HTMLAreaElement.attributionSrc133133✕✕133✕✕
HTMLImageElement.attributionSrc125125✕✕125✕✕
HTMLScriptElement.attributionSrc125125✕✕125✕✕
Request.Request.options_parameter.attributionReporting125125✕✕125✕✕
Window.open.features_parameter_attributionsrc125125✕✕125✕✕
XMLHttpRequest.setAttributionReporting125125✕✕125✕✕
fetch.options_parameter.attributionReporting125125✕✕125✕✕
a.attributionsrc125125✕✕125✕✕
area.attributionsrc125125✕✕125✕✕
iframe.allow.attribution-reporting117117✕✕117✕✕
img.attributionsrc125125✕✕125✕✕
script.attributionsrc125125✕✕125✕✕
http.headers.Attribution-Reporting-Eligible117117✕✕117✕✕
http.headers.Attribution-Reporting-Register-Source117117✕✕117✕✕
http.headers.Attribution-Reporting-Register-Trigger117117✕✕117✕✕
http.headers.Attribution-Reporting-Support117117✕✕117✕✕
http.headers.Permissions-Policy.attribution-reporting117117✕✕117✕✕