Skip to content

Commit

Permalink
chore(IT Wallet): [SIW-1648] Mixpanel events new features (#6235)
Browse files Browse the repository at this point in the history
## Short description

Add some mixpanel events and handlers for profile and super properties.

## List of changes proposed in this pull request
- Add new mixpanel
[events](https://docs.google.com/spreadsheets/d/18aswiKUcLxnIRrZoOQ3c9pBSnhq-e743_gKKljaHTnE/edit?pli=1&gid=712076735#gid=712076735)
- Update ITW profile and super properties

## How to test
- Retrieve WI.
- Add documents.
- Filter documents by category.
- View document details.
- Revoke  WI.
- Look at mixpanel dashboard in order to watch over properties updates.

---------

Co-authored-by: Mario Perrotta <[email protected]>
Co-authored-by: LazyAfternoons <[email protected]>
Co-authored-by: Alessandro Mazzon <[email protected]>
  • Loading branch information
4 people authored Oct 17, 2024
1 parent 08d5d02 commit 7492e94
Show file tree
Hide file tree
Showing 26 changed files with 818 additions and 342 deletions.
24 changes: 21 additions & 3 deletions ts/features/itwallet/analytics/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ export enum ITW_SCREENVIEW_EVENTS {
ITW_CREDENTIAL_PREVIEW = "ITW_CREDENTIAL_PREVIEW",
WALLET = "WALLET",
WALLET_ADD_LIST_ITEM = "WALLET_ADD_LIST_ITEM",
ITW_DATA_SHARE = "ITW_DATA_SHARE"
ITW_DATA_SHARE = "ITW_DATA_SHARE",
ITW_CREDENTIAL_DETAIL = "ITW_CREDENTIAL_DETAIL",
ITW_DEFERRED_ISSUING = "ITW_DEFERRED_ISSUING",
"ITW_CREDENTIAL_FAC-SIMILE" = "ITW_CREDENTIAL_FAC-SIMILE"
}

export enum ITW_ACTIONS_EVENTS {
CLOSE_BANNER = "CLOSE_BANNER",
TAP_BANNER = "TAP_BANNER",
ITW_TOS = "ITW_TOS",
ITW_TOS_ACCEPTED = "ITW_TOS_ACCEPTED",
ITW_ID_START = "ITW_ID_START",
ITW_ID_METHOD_SELECTED = "ITW_ID_METHOD_SELECTED",
ITW_SPID_IDP_SELECTED = "ITW_SPID_IDP_SELECTED",
Expand All @@ -30,7 +34,18 @@ export enum ITW_ACTIONS_EVENTS {
WALLET_ADD_START = "WALLET_ADD_START",
ITW_KO_STATE_ACTION_SELECTED = "ITW_KO_STATE_ACTION_SELECTED",
ITW_DATA_SHARE_ACCEPTED = "ITW_DATA_SHARE_ACCEPTED",
WALLET_ADD = "WALLET_ADD"
WALLET_ADD = "WALLET_ADD",
ITW_CREDENTIAL_DELETE = "ITW_CREDENTIAL_DELETE",
WALLET_CATEGORY_FILTER = "WALLET_CATEGORY_FILTER",
ITW_CREDENTIAL_SHOW_BACK = "ITW_CREDENTIAL_SHOW_BACK",
ITW_CREDENTIAL_SHOW_ISSUER = "ITW_CREDENTIAL_SHOW_ISSUER",
ITW_CREDENTIAL_SHOW_AUTH_SOURCE = "ITW_CREDENTIAL_SHOW_AUTH_SOURCE",
ITW_CREDENTIAL_SUPPORT = "ITW_CREDENTIAL_SUPPORT",
"ITW_CREDENTIAL_SHOW_FAC-SIMILE" = "ITW_CREDENTIAL_SHOW_FAC-SIMILE",
ITW_CREDENTIAL_SHOW_TRUSTMARK = "ITW_CREDENTIAL_SHOW_TRUSTMARK",
ITW_START_DEACTIVATION = "ITW_START_DEACTIVATION",
ITW_NEW_ID_RESET = "ITW_NEW_ID_RESET",
ITW_CREDENTIAL_RENEW_START = "ITW_CREDENTIAL_RENEW_START"
}

export enum ITW_ERRORS_EVENTS {
Expand All @@ -43,9 +58,11 @@ export enum ITW_ERRORS_EVENTS {
ITW_CIE_CARD_READING_FAILURE = "ITW_CIE_CARD_READING_FAILURE",
ITW_ADD_CREDENTIAL_TIMEOUT = "ITW_ADD_CREDENTIAL_TIMEOUT",
ITW_ADD_CREDENTIAL_FAILURE = "ITW_ADD_CREDENTIAL_FAILURE",
ITW_ADD_CREDENTIAL_NOT_ENTITLED_FAILURE = "ITW_ADD_CREDENTIAL_NOT_ENTITLED_FAILURE",
ITW_ID_NOT_MATCH = "ITW_ID_NOT_MATCH",
ITW_ID_REQUEST_TIMEOUT = "ITW_ID_REQUEST_TIMEOUT",
ITW_ID_REQUEST_FAILURE = "ITW_ID_REQUEST_FAILURE",
ITW_ID_REQUEST_UNEXPECTED_FAILURE = "ITW_ID_REQUEST_UNEXPECTED_FAILURE",
ITW_LOGIN_ID_NOT_MATCH = "ITW_LOGIN_ID_NOT_MATCH",
ITW_ALREADY_HAS_CREDENTIAL = "ITW_ALREADY_HAS_CREDENTIAL"
}
Expand All @@ -61,5 +78,6 @@ export enum ITW_TECH_EVENTS {
}

export enum ITW_CONFIRM_EVENTS {
ITW_UX_SUCCESS = "ITW_UX_SUCCESS"
ITW_UX_SUCCESS = "ITW_UX_SUCCESS",
ITW_DEACTIVATED = "ITW_DEACTIVATED"
}
Loading

0 comments on commit 7492e94

Please sign in to comment.