demo · v133

<area attributionsrc>

Legacy image-map <area> elements now accept the same attributionsrc attribute as <a>. Click a region: the browser will fire an Attribution Reporting registration ping before navigating.

Attribution Reporting is gated to permitted contexts and requires the origin trial / chrome://flags/#privacy-sandbox-ads-apis in development. The link clicks still work; the ping only fires when the browser has Attribution Reporting enabled for this origin.
Image map with region A and region B region A region B

Click region A or B. Each <area> has an attributionsrc URL. We intercept the click and log what the browser would fetch as the attribution registration ping.

checking support…

the HTML

<img src="banner.png" usemap="#m">
<map name="m">
  <area shape="rect" coords="0,0,150,80" href="/landing"
        attributionsrc="/.well-known/attribution-reporting/register-source?ad=42">
</map>

see also