-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [Counterfactual] Add analytics events
- Loading branch information
1 parent
663341e
commit 459a851
Showing
11 changed files
with
112 additions
and
45 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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { EventType } from '@/services/analytics' | ||
|
||
const COUNTERFACTUAL_CATEGORY = 'counterfactual' | ||
|
||
export const COUNTERFACTUAL_EVENTS = { | ||
CREATE_COUNTERFACTUAL_SAFE: { | ||
action: 'Create counterfactual safe', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.CLICK, | ||
}, | ||
CHOOSE_PAY_NOW: { | ||
action: 'Choose pay now', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.CLICK, | ||
}, | ||
CHOOSE_PAY_LATER: { | ||
action: 'Choose pay later', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.CLICK, | ||
}, | ||
BACKUP_COUNTERFACTUAL_SAFE: { | ||
action: 'Backup counterfactual safe', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.CLICK, | ||
}, | ||
CHOOSE_FIRST_TRANSACTION: { | ||
action: 'Choose first transaction', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.CLICK, | ||
}, | ||
PRESS_CREATE_TRANSACTION: { | ||
action: 'Press create transaction', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.CLICK, | ||
}, | ||
PRESS_ADD_FUNDS: { | ||
action: 'Press add funds', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.CLICK, | ||
}, | ||
SUBMIT_ACCOUNT_ACTIVATION: { | ||
action: 'Submit account activation', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.CLICK, | ||
}, | ||
DEPLOYED_COUNTERFACTUAL_SAFE: { | ||
action: 'Deployed counterfactual safe', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.META, | ||
}, | ||
CHECK_BALANCES: { | ||
action: 'Check balances on block explorer', | ||
category: COUNTERFACTUAL_CATEGORY, | ||
event: EventType.CLICK, | ||
}, | ||
} |