<a
id="ad-link"
href="https://example.com"
attributiondestination="https://example.com">
Click to visit our shop
</a>HTMLAnchorElement: attributionSourceId property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const adLink = document.getElementById("ad-link");
adLink.attributionSourceId = 17;
console.log(adLink.attributionSourceId); // 17