-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ads team ppa testing (fix #14839) #14850
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14850 +/- ##
=======================================
Coverage 77.37% 77.38%
=======================================
Files 161 161
Lines 8302 8305 +3
=======================================
+ Hits 6424 6427 +3
Misses 1878 1878 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does seem to do what it should, in that the event gets added on click, but I'm not sure how to verify the data is appearing on the other end. We could put this on a demo server for the ads team to test, but I'm not sure who to talk to. Emma would know.
|
||
link.addEventListener('click', () => { | ||
navigator.privateAttribution.measureConversion({ | ||
task: 'task_id', // Unique task ID. Supplied by Mozilla. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this been provided yet? I assume our unique task ID is not actually task_id
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both task
and histogramSize
have not been provided yet. I will update the PR once they are available
'use strict'; | ||
|
||
link.addEventListener('click', () => { | ||
navigator.privateAttribution.measureConversion({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this throw an error in older Firefox versions? It might be worth wrapping in a try/catch if so?
One-line summary
Significant changes and points to review
Issue / Bugzilla link
#14839
Testing