mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-11 01:53:46 +00:00
Added some metrics to monitor in Google Analytics
This commit is contained in:
4
src/analytics.ts
Normal file
4
src/analytics.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
/** Sends an event to Google Analytics. */
|
||||
export function analyticsEvent(action: string, data?: any) {
|
||||
(window as any).gtag('event', action, data);
|
||||
}
|
||||
Reference in New Issue
Block a user