-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GST): Implement user timings (#329)
* Google Global Site Tag (GST) - implement user timings * GST - cover 'user timings' with test * User timings - remove required properties check
- Loading branch information
Showing
3 changed files
with
92 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** @link https://developers.google.com/analytics/devguides/collection/gtagjs/user-timings */ | ||
export interface UserTimingsGst { | ||
/** A string to identify the variable being recorded (e.g. 'load'). */ | ||
name: string; | ||
/** The number of milliseconds in elapsed time to report to Google Analytics (e.g. 20). */ | ||
value: number; | ||
/** A string for categorizing all user timing variables into logical groups (e.g. 'JS Dependencies'). */ | ||
category?: string; | ||
/** A string that can be used to add flexibility in visualizing user timings in the reports (e.g. 'Google CDN'). */ | ||
label?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters