[Webkit-unassigned] [Bug 225783] New: PCM: How can I check if PCM feature is enabled in a given Safari instance?
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 13 15:03:24 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=225783
Bug ID: 225783
Summary: PCM: How can I check if PCM feature is enabled in a
given Safari instance?
Product: WebKit
Version: Safari Technology Preview
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mwei at pinterest.com
May I ask if Safari could tell me programmatically that whether PCM is enabled in a given Safari instance?
The reason why I am asking is because currently only PCM is launched in iOS 14.5 and not yet on older version of iOS and MacOS. Thus, we would like to assess the coverage of PCM on all our offsite events.
Google's Chrome is provide a javascript function like this below.
function isConversionMeasurementEnabled() {
var isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
return isChrome && !!document.featurePolicy && !!document.featurePolicy.features() && document.featurePolicy.features().includes('conversion-measurement');
}
Thanks
Maojie
--
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/20210513/7d113d61/attachment-0001.htm>
More information about the webkit-unassigned
mailing list