UNPKG

755 BTypeScriptView Raw
1export interface EventTrack {
2 action: string;
3 properties: any;
4}
5export interface PageTrack {
6 path: string;
7}
8/** @link https://developers.google.com/analytics/devguides/collection/analyticsjs/user-timings */
9export interface UserTimings {
10 /** A string for categorizing all user timing variables into logical groups (e.g. 'JS Dependencies'). */
11 timingCategory: string;
12 /** A string to identify the variable being recorded (e.g. 'load'). */
13 timingVar: string;
14 /** The number of milliseconds in elapsed time to report to Google Analytics (e.g. 20). */
15 timingValue: number;
16 /** A string that can be used to add flexibility in visualizing user timings in the reports (e.g. 'Google CDN'). */
17 timingLabel?: string;
18}