Private click measurement
The attributionsourceid and attributiondestination attributes for <a> elements measure clicks across websites without associating a click to a specific session. Not to be confused with attribution reporting. Also known as PCM. It is most useful when native HTML semantics or browser capabilities can replace custom implementation work.
Overview
The attributionsourceid and attributiondestination attributes for <a> elements measure clicks across websites without associating a click to a specific session. Not to be confused with attribution reporting. Also known as PCM. It is most useful when native HTML semantics or browser capabilities can replace custom implementation work.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
api.HTMLAnchorElement.attributionSourceId Experimental | | | | 15.4 | | 15.4 |
| HTML attribute | ||||||
attributionsourceid Experimental | | | | 14.1 | | 14.5 |
- This feature was removed in a later browser version (15.4)
- Previously available under a different name: attributionsourceid (14.1)
- This feature was removed in a later browser version (15.4)
- Previously available under a different name: attributionsourceid (14.5)
Syntax
<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.
Related links
Powered by web-features