feat(analytics): add Add Money funnel tracking#1069
Merged
Conversation
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
Adds a unified 'Add Money' event family, modeled after the existing
transfer events (single terminal event with State/Error properties):
- Add Money: Opened — Source: Menu | Give Shortfall | Buy Shortfall |
Chat | Scanner | Balance
- Add Money: Method Selected — Method: Coinbase | Phantom | Other Wallet | Reserves
- Add Money: Amount Confirmed — Method + amount properties
- Add Money: Payment Invoked — Method + amount properties
- Add Money: Address Copied — Mint (Other Wallet path)
- Add Money — terminal, State=Success/Failure + Error + amount
Instrumented across the flow:
- MenuScreenViewModel: opened from menu tile
- CashScreenViewModel: opened from give-shortfall alert (USDF only)
- SwapViewModel: opened from buy-shortfall alert, amount confirmed,
payment invoked (Coinbase order placed / Phantom pre-sign), terminal
success on balance delivery, terminal failure on order delivery
failure/timeout, Coinbase web errors, order placement errors, and
Phantom transaction errors
- ChatViewModel: opened from no-balance prompt when starting a chat
- DepositDelegate: opened from scanner Give action with nothing giveable
- BalanceViewModel: opened from balance screen (AddMoneyUX only)
- InternalPurchaseMethodController: method selected from deposit sheet
- DepositViewModel: address copied
Funnel events only fire when acquiring USDF via an external funding
source; launchpad token buys remain tracked via buy()/sell().
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a unified 'Add Money' event family, modeled after the existing
transfer events (single terminal event with State/Error properties):
Instrumented across the flow:
payment invoked (Coinbase order placed / Phantom pre-sign), terminal
success on balance delivery, terminal failure on order delivery
failure/timeout, Coinbase web errors, order placement errors, and
Phantom transaction errors
Funnel events only fire when acquiring USDF via an external funding
source; launchpad token buys remain tracked via buy()/sell().