MCPcopy Create free account
hub / github.com/ampproject/amphtml / postAnalyticsEvent

Method postAnalyticsEvent

src/video-iframe-integration.js:349–357  ·  view source on GitHub ↗

* Posts a custom analytics event. * @param {string} eventType * @param {!{[key: string]: string}=} opt_vars

(eventType, opt_vars)

Source from the content-addressed store, hash-verified

347 * @param {!{[key: string]: string}=} opt_vars
348 */
349 postAnalyticsEvent(eventType, opt_vars) {
350 this.postToParent_({
351 'event': 'analytics',
352 'analytics': {
353 'eventType': eventType,
354 'vars': opt_vars,
355 },
356 });
357 }
358
359 /**
360 * @param {!JsonObject} data

Callers

nothing calls this directly

Calls 1

postToParent_Method · 0.95

Tested by

no test coverage detected