[Webkit-unassigned] [Bug 224884] New: PCM: Trigger Event
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 21 12:18:50 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=224884
Bug ID: 224884
Summary: PCM: Trigger Event
Product: WebKit
Version: Safari Technology Preview
Hardware: Mac (Intel)
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Website
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mwei at pinterest.com
CC: jond at apple.com, wilander at apple.com
Created attachment 426726
--> https://bugs.webkit.org/attachment.cgi?id=426726&action=review
storing a click
Following the blog https://webkit.org/blog/11529/introducing-private-click-measurement-pcm/ to integrate with PCM.
I was able to see [Private Click Measurement] Storing a click in the console, however, nothing happended after that.
I have two websites, the first serves as social.example, the second as shop.example. When I click the link on social.example, it directs me to shop.example and console displays [Private Click Measurement] Storing a click. Then I click the button on shop.example and onClick is sending an HTTP get request to https://social.example/.well-known/private-click-measurement/trigger-attribution/1 or https://social.example/.well-known/private-click-measurement/1(I tested both). No further activity were noticed on console after that.
Below is my steps of testing:
1. click link on pcmprep.com which directs me to https://damaipin.blogspot.com/2021/04/pcm-advertiser.html
2. click button on https://damaipin.blogspot.com/2021/04/pcm-advertiser.html which sends HTTP GET requests to https://www.pcmprep.com/.well-known/private-click-measurement/trigger-attribution/1/
Code snippet for HTTP Get request:
function trigger(){
const url='https://www.pcmprep.com/.well-known/private-click-measurement/trigger-attribution/1/';
fetch(url, {mode: 'cors'}).then(res => {
return res.json();
}).then(users => {
console.log(users);
}).catch(function(error) {
console.log('Request failed', error)
});
}
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210421/34650bcf/attachment.htm>
More information about the webkit-unassigned
mailing list