-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from nzzdev/tracking-enums
Add tracking category
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
// All events should prefixed with "et-" so they can be found easily in the tracking data and not mixed with older events. | ||
// Create a new category like "navigation" if your new actions do not fit into the existing categories | ||
export enum EventActionNavigation { | ||
SWIPE_RIGHT = "et-swipe-right", | ||
SWIPE_LEFT = "et-swipe-left", | ||
CLICK_NEXT = "et-click-next", | ||
CLICK_PREVIOUS = "et-click-previous", | ||
} | ||
|
||
// TODO create a new category like "navigation" if your new actions do not fit into the existing categories | ||
export enum MediaAction { | ||
PLAY_AUDIO_THROUGH_HOVER = "et-play-audio-through-hover", | ||
PLAY_AUDIO_THROUGH_TOUCH = "et-play-audio-through-touch", | ||
} |