MCPcopy Create free account
hub / github.com/datapane/datapane / trackLocalReportView

Function trackLocalReportView

web-components/shared/dp-track.ts:133–147  ·  view source on GitHub ↗
(
    event: "CLI_REPORT_VIEW" | "SERVED_REPORT_VIEW",
)

Source from the content-addressed store, hash-verified

131};
132
133export const trackLocalReportView = (
134 event: "CLI_REPORT_VIEW" | "SERVED_REPORT_VIEW",
135) => {
136 if (!window.dpLocalViewEvent) {
137 return;
138 }
139 asyncDPTrackEvent(
140 event,
141 {
142 author_id: window.dpAuthorId,
143 report_id: window.dpReportId,
144 },
145 false,
146 );
147};

Callers

nothing calls this directly

Calls 1

asyncDPTrackEventFunction · 0.85

Tested by

no test coverage detected