Private click measurement
The attributionSourceId property of the HTMLAnchorElement interface gets and sets the attributionsourceid HTML attribute on an <a> element.
The attributionSourceId is used as part of the Private Click Measurement specification to identify the content that was clicked when following a link to another site.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
attributionSourceId Experimental | | | | 15.4 | | 15.4 |
| HTML attribute | ||||||
attributionsourceid Experimental | | | | 14.1 | | 14.5 |
1+Supported (version) Not supported ※Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 2 item(s)
Removed
- This feature was removed in a later browser version (15.4)
Implementation note
- Previously available under a different name: attributionsourceid (14.1)
Notes 2 item(s)
Removed
- This feature was removed in a later browser version (15.4)
Implementation note
- Previously available under a different name: attributionsourceid (14.5)
Syntax
HTML
<a href="https://shop.example.com"
attributionsourceid="42"
attributeon="https://shop.example.com">
Advertisement link
</a> Use cases
-
Use Private click measurement
Use Private click measurement when standard HTML needs a more specific platform feature, semantic signal, or browser capability.
-
Handle edge cases
Apply Private click measurement to solve a focused requirement without redesigning the whole page architecture.
Cautions
- Test Private click measurement in your target browsers and input environments before depending on it as a primary behavior.
- Provide a fallback path or acceptable degradation strategy when support is still limited.
Accessibility
- Make sure Private click measurement supports the intended task without making the page harder to perceive, understand, or operate.