question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable Private Click Tracking, Attribution Reporting API and Ping on `a` tags

See original GitHub issue

Description

As the web is transitioning to becoming more private, new technologies are emerging to enable private click tracking and click attribution. This is done with attributes on a link tags. Unfortunately, implementing these private click tracking methods invalidates AMP pages.

Please consider enabling the following attributes on a tags:

  • impressiondata
  • conversiondestination
  • impressionexpiry
  • reportingorigin
  • attributionsourceid
  • attributeon
  • ping

Alternatives Considered

None, as adding the attributes renders the AMP pages invalid.

Additional Context

Private Click Measurement spec Attribution Reporting API spec

This was initially brought up in #34449 , I just started implementing a proof of concept today and saw the page becoming invalid.

CleanShot 2021-06-29 at 13 50 23@2x

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
kristoferbaxtercommented, Jul 6, 2021

On the ping attribute, it’s also part of the WhatWG html specification.

https://html.spec.whatwg.org/multipage/links.html

The ping attribute, if present, gives the URLs of the resources that are interested in being notified if the user follows the hyperlink. The value must be a set of space-separated tokens, each of which must be a valid non-empty URL whose scheme is an HTTP(S) scheme. The value is used by the user agent for hyperlink auditing.

Making it valid, and potentially ensuring it’s a valid space-separated token list of https urls seems like a good idea.

2reactions
maudnalscommented, Jul 12, 2021

(hi there, Chrome web DevRel here, I’m working on this API, chiming in as @alanorozco pinged me)

  • ping is not part of Chrome’s Attribution Reporting spec (maybe it’s part of other specs). It looks like it’s not part of WebKit’s latest PCM spec, either (see spec). You should be able to safely ignore it for Attribution Reporting support.
  • attributeon has been deprecated in favor of attributiondestination. I can confirm with certainty that attributiondestination is the correct attribute for Chrome. WebKit’s spec seems to be using attributiondestination as well.
  • I’m unsure about attributionsourceid. It looks like Chrome is using attributionsourceeventid and WebKit attributionsourceid. I’ll explore why these are different and whether they ned to be aligned, but if possible in the meantime it may make sense to support both attributes.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Attribution Reporting - Chrome Developers
Attribution Reporting. An API to measure when an ad click or view leads to a conversion, such as a purchase on an advertiser...
Read more >
Multiple Impression Registrations on Existing Tracking Pings
Support for 3rd party trackers: 3rd party trackers can only register impressions on click tracking pings. Currently there is no mechanism ...
Read more >
Manage user privacy | Tags - Google Developers
Open your Google Analytics 4 configuration tag for editing. Click Fields to Set. Click Add Row. For Field Name, enter allow_google_signals, and for...
Read more >
Private Click Measurement: Conversion Fraud Prevention and ...
This enables merchant websites to sign unlinkable tokens and get proof in the attribution report that it was triggered by a trustworthy ...
Read more >
Documentation / Using Podsights
Podsights is a reporting and attribution platform for podcast advertising. ... The Main Pixel Script is required to start tracking activity on your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found