osmosis-frontend icon indicating copy to clipboard operation
osmosis-frontend copied to clipboard

Integrate Matomo analytics

Open jonator opened this issue 3 years ago • 4 comments

We've recently added Matomo tracker for frontier (testing now, integrating into app later). It's great, but it only handles loading and routing.

We should also push events such as:

  • Swap page

    • Change slippage setting
    • Swap
    • Max, half
    • Switch tokens
  • Pools Page

    • Start filtering (All Pools/External Pools)
    • Sort (All Pools/External Pools)
    • < $1000
    • Incentivized/All Pools menu toggle
  • Assets Page

    • Deposit/Withdraw (and asset)
    • Search
    • Sort
    • Hide 0 balances
  • Sign out

Things to look out for

  • Don't make things too complex
  • Avoid double counting (i.e. opening a pool detail page is counted via route change)
  • Consider adding keys config object to config file instead of hardcoding string files (provides visibility into available events)

https://matomo.org/guide/reports/event-tracking/

jonator avatar Jul 05 '22 01:07 jonator

Prior to implementation on the frontend, we need to figure out how to convey that we're tracking usage patterns (not gathering data).

If we're using cookies for remembering settings, can we bundle a small message into that same toast?

syed8rahman avatar Jul 05 '22 21:07 syed8rahman

  • [ ] Design prompt to let users know we're tracking usage patterns

syed8rahman avatar Jul 05 '22 21:07 syed8rahman

7/14 meeting- we could bundle this in the terms when users connect wallet. Syed- we could look at other apps that do this well.

jonator avatar Jul 14 '22 16:07 jonator