Limited availability
å®å ¨ãªã³ã³ããã¹ãç¨: ãã®æ©è½ã¯ä¸é¨ã¾ãã¯ãã¹ã¦ã®å¯¾å¿ãã¦ãããã©ã¦ã¶ã¼ã«ããã¦ãå®å ¨ãªã³ã³ããã¹ã (HTTPS) ã§ã®ã¿å©ç¨ã§ãã¾ãã
Experimental: ããã¯å®é¨çãªæ©è½ã§ãã
æ¬çªã§ä½¿ç¨ããåã«ãã©ã¦ã¶ã¼äºææ§ä¸è¦§è¡¨ããã§ãã¯ãã¦ãã ããã
setAttributionReporting()
㯠XMLHttpRequest
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ã¡ã½ããã§ããã®ãªã¯ã¨ã¹ãã®ã¬ã¹ãã³ã¹ã«å¯¾ãã¦ã JavaScript ãã¼ã¹ã®å¸°å±ã½ã¼ã¹ã¾ãã¯å¸°å±ããªã¬ã¼ãç»é²ã§ããããã«ããããã¨ã示ãã¾ãã
詳ããã¯å¸°å±ã¬ãã¼ã APIãåç §ãã¦ãã ããã
æ§æsetAttributionReporting(options)
弿°
options
帰å±ã¬ãã¼ãã®ãªãã·ã§ã³ãæç¤ºãããªãã¸ã§ã¯ãã§ã次ã®ããããã£ãå«ã¾ãã¾ãã
eventSourceEligible
è«çå¤ã true
ã«è¨å®ããã¨ããã®ãªã¯ã¨ã¹ãã®ã¬ã¹ãã³ã¹ã¯ã帰å±ã½ã¼ã¹ãç»é²ãã対象ã¨ãªãã¾ãã false
ã«è¨å®ããã¨ã対象å¤ã¨ãªãã¾ãã
triggerEligible
è«çå¤ã true
ã«è¨å®ããã¨ããã®ãªã¯ã¨ã¹ãã®ã¬ã¹ãã³ã¹ã¯ã帰å±ããªã¬ã¼ãç»é²ãã対象ã¨ãªãã¾ãã false
ã«è¨å®ããã¨ã対象å¤ã¨ãªãã¾ãã
ãªã (undefined
)ã
InvalidStateError
DOMException
é¢é£ä»ãããã XMLHttpRequest
ãéãããããã®å¦çãã¾ã è¡ããã¦ããªãå ´åãã¾ãã¯ãã§ã«éä¿¡æ¸ã¿ã§ããå ´åã«çºçãã¾ãã
TypeError
DOMException
帰å±ã¬ãã¼ã API ã®ä½¿ç¨ãã attribution-reporting
ã® Permissions-Policy
ã«ãã£ã¦ãããã¯ããã¦ããå ´åã«çºçãã¾ãã
const attributionReporting = {
eventSourceEligible: true,
triggerEligible: false,
};
function triggerSourceInteraction() {
const req = new XMLHttpRequest();
req.open("GET", "https://shop.example/endpoint");
// Check availability of setAttributionReporting() before calling
if (typeof req.setAttributionReporting === "function") {
req.setAttributionReporting(attributionReporting);
req.send();
} else {
throw new Error("Attribution reporting not available");
// é©åãªãªã«ããªã¼ã³ã¼ããããã«å
¥ãã
}
}
// æä½ããªã¬ã¼ããã³ã¼ãã«æå³ã®ããè¦ç´ ãã¤ãã³ãã¨é¢é£ä»ãã
elem.addEventListener("click", triggerSourceInteraction);
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4