MCPcopy
hub / github.com/nytimes/react-tracking / dispatchTrackingEvent

Function dispatchTrackingEvent

src/dispatchTrackingEvent.js:1–5  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1export default function dispatchTrackingEvent(data) {
2 if (typeof window !== 'undefined' && Object.keys(data).length > 0) {
3 (window.dataLayer = window.dataLayer || []).push(data);
4 }
5}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…