Skip to content

Commit c4f8dac

Browse files
committed
add drag analytics event
1 parent 5b6c29a commit c4f8dac

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/lib/analytics.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ enum Verbs {
3737
START = 'Start',
3838
FINISH = 'Finish',
3939
SKIP = 'Skip',
40+
DRAG = 'Drag',
4041
}
4142

4243
export enum Attributes {
@@ -283,6 +284,13 @@ export const trackRssSourceAdd = (source: string) => {
283284
})
284285
}
285286

287+
export const trackPageDrag = () => {
288+
trackEvent({
289+
object: Objects.PAGE,
290+
verb: Verbs.DRAG,
291+
})
292+
}
293+
286294
// Identification
287295

288296
export const identifyUserLanguages = (languages: string[]) => {

0 commit comments

Comments
 (0)