Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup heap analytics events for normal Farms #143

Closed
19 tasks
0xtuytuy opened this issue Nov 21, 2022 · 0 comments
Closed
19 tasks

Setup heap analytics events for normal Farms #143

0xtuytuy opened this issue Nov 21, 2022 · 0 comments

Comments

@0xtuytuy
Copy link
Contributor

Is your feature request related to a problem? Please describe.
To help with tracking progress and help with analytics, we would like to setup some event tracking on the main dapp.
To do this we need to add a few custom events (https://help.heap.io/definitions/events/events-overview/#how-many-events-should-i-define) this can be done using the heap SDK: https://developers.heap.io/reference/track

Describe the solution you'd like
Here is a list of custom events needed:
General events:

  • when onboards.js is connected: heap.track('walletConnected', {walletType: '{type of wallet, like metamask}', chain: '{what chain the user is connected to like mainnet or polygon}'});

Farm

  • when the farm button is clicked by a user: heap.track('clickFarm', {pool: '{Ib or boost}', currency: '{usd or eur or cvx/eth}'});
  • when the user has stopped typing in the deposit box: heap.track('startedDepositing', {pool: '{Ib or boost}', currency: '{usd or eur or cvx/eth}', amount: '{just the amount typed}'});
  • when the user approves transaction is mined: heap.track('approvedTransactionMined', {pool: '{Ib or boost}', currency: '{usd or eur or cvx/eth}', amount: '{just the amount approved}'});
  • when the user deposit transaction is mined: heap.track('depositTransactionMined', {pool: '{Ib or boost}', currency: '{usd or eur or cvx/eth}', amount: '{just the amount deposited}'});

Autoinvest

  • when the autoinvest modal is opened: heap.track('clickAutoinvest');
  • when the user has selected a token: heap.track('autoInvestTokenSelected', {token: '{name of the token selected}'});
  • when the user has stopped typing in the deposit box: heap.track('startedAutoinvestDeposit', token: '{usdc or eurj or cvx/eth}', amount: '{just the amount typed}'});
  • when the user approves transaction to ricochet is mined: heap.track('approvedTransactionMined', {pool: '{Ib or boost}', currency: '{usd or eur or cvx/eth}', amount: '{just the amount approved}'});
  • when the user deposit transaction is mined: heap.track('depositTransactionMined', {pool: '{Ib or boost}', currency: '{usd or eur or cvx/eth}', amount: '{just the amount deposited}'});

Transfer

  • when the transfer page is opened: heap.track('transfer');
  • when the user has stopped typing in the amount box: heap.track('transferAmount', {amount: '{just the amount typed}'});
  • when the user has stopped typing in the recipient box: heap.track('transferRecipient');
  • when the user clicks the transfer button: heap.track('transferButtonClicked');

Stake

  • when the stake page is opened: heap.track('stake');
  • when the user has stopped typing in the amount box: heap.track('stakeLockAmount', {amount: '{just the amount typed}'});
  • when the user clicks the stake button: heap.track('stakeLockButtonClicked');
  • when the user has stopped typing in the amount box: heap.track('stakeLockAmount', {amount: '{just the amount typed}'});
  • when the user has stopped the slider on an amount: heap.track('stakeUnlockAmount', {amount: '{just the amount typed}'});
  • when the user clicks the stake button: heap.track('stakeUnlockButtonClicked');

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@0xtuytuy 0xtuytuy closed this as completed Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant