A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/Fence/reportEvent below:

Fence: reportEvent() method - Web APIs

Fence: reportEvent() method

Limited availability

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The reportEvent() method of the Fence interface triggers the submission of report data via a beacon to one or more specific URLs registered via the registerAdBeacon() method of the Protected Audience API, for the purpose of collecting ad auction results.

Note: setReportEventDataForAutomaticBeacons() provides similar report data submission, except in that case the submission is triggered via a navigation rather than by an explicit method call.

Syntax Parameters
event

An object or string representing the data to send.

Return value

None (Undefined).

Examples
window.fence.reportEvent({
  eventType: "click",
  eventData: JSON.stringify({ clickX: "123", clickY: "456" }),
  destination: ["buyer", "seller"],
});
Specifications Browser compatibility See also

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