Skip to content

Commit

Permalink
Merge pull request #16 from nzzdev/tracking-enums
Browse files Browse the repository at this point in the history
Add tracking category
  • Loading branch information
al-soup authored May 2, 2023
2 parents 55b9582 + eade927 commit ed18d1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tracking/src/enums.ts
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",
}

0 comments on commit ed18d1e

Please sign in to comment.