Skip to content

Commit 8d5ed8a

Browse files
authored
feat(analytics): enable Mixpanel (#6772)
### Description Enable Mixpanel ### Test plan * Tested manually by observing events being sent to [Mixpanel project](https://mixpanel.com/project/3987914/view/4483711/app/events): * Android emulator * iOS device ### Related issues - valora-xyz/wallet-stack#335 - celo-org/celo-monorepo#11646 ### Backwards compatibility Y ### Network scalability NA
1 parent ae455d1 commit 8d5ed8a

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
EXPO_PUBLIC_ALCHEMY_API_KEY=<YOUR_API_KEY>
22
EXPO_PUBLIC_BIDALI_URL=<YOUR_APP_URL>
3+
EXPO_PUBLIC_MIXPANEL_TOKEN=<YOUR_TOKEN>
34
EXPO_PUBLIC_SEGMENT_API_KEY=<YOUR_API_KEY>
45
EXPO_PUBLIC_SENTRY_CLIENT_URL=<YOUR_APP_URL>
56
EXPO_PUBLIC_STATSIG_API_KEY=<YOUR_API_KEY>

index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ const App = createApp({
2424
walletConnect: {
2525
projectId: process.env.EXPO_PUBLIC_WALLET_CONNECT_PROJECT_ID!,
2626
},
27+
mixpanel: {
28+
token: process.env.EXPO_PUBLIC_MIXPANEL_TOKEN!,
29+
},
2730
},
2831
themes: {
2932
default: {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"expo-splash-screen": "~0.27.7",
7070
"expo-status-bar": "~2.2.3",
7171
"lottie-react-native": "^5.1.6",
72+
"mixpanel-react-native": "^3.2.1",
7273
"react": "19.0.0",
7374
"react-native": "0.79.6",
7475
"react-native-adjust": "^4.38.1",
@@ -95,7 +96,7 @@
9596
"react-native-simple-toast": "^3.3.2",
9697
"react-native-svg": "^15.11.2",
9798
"react-native-video": "^6.16.1",
98-
"wallet-stack": "^1.0.0-alpha.125"
99+
"wallet-stack": "^1.0.0-alpha.127"
99100
},
100101
"devDependencies": {
101102
"@actions/github": "^5.1.1",

yarn.lock

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9158,6 +9158,14 @@ minizlib@^3.1.0:
91589158
dependencies:
91599159
minipass "^7.1.2"
91609160

9161+
mixpanel-react-native@^3.2.1:
9162+
version "3.2.1"
9163+
resolved "https://registry.yarnpkg.com/mixpanel-react-native/-/mixpanel-react-native-3.2.1.tgz#a44dd318ec493696796253b46a2f086d8402e403"
9164+
integrity sha512-TVHk+kt+BIXcT4KVlSsKaUMpmIriFd45nWvawpVYHugG4DXQ4ylt27KijXu4ojsW/kJaBAFRmq3c/cClj074uQ==
9165+
dependencies:
9166+
react-native-get-random-values "^1.9.0"
9167+
uuid "^9.0.1"
9168+
91619169
mkdirp@^0.5.1:
91629170
version "0.5.6"
91639171
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6"
@@ -10165,7 +10173,7 @@ react-native-gesture-handler@^2.23.1:
1016510173
hoist-non-react-statics "^3.3.0"
1016610174
invariant "^2.2.4"
1016710175

10168-
react-native-get-random-values@1.x:
10176+
react-native-get-random-values@1.x, react-native-get-random-values@^1.9.0:
1016910177
version "1.11.0"
1017010178
resolved "https://registry.yarnpkg.com/react-native-get-random-values/-/react-native-get-random-values-1.11.0.tgz#1ca70d1271f4b08af92958803b89dccbda78728d"
1017110179
integrity sha512-4BTbDbRmS7iPdhYLRcz3PGFIpFJBwNZg9g42iwa2P6FOv9vZj/xJc678RZXnLNZzd0qd7Q3CCF6Yd+CU2eoXKQ==
@@ -12368,10 +12376,10 @@ walker@^1.0.7, walker@^1.0.8:
1236812376
dependencies:
1236912377
makeerror "1.0.12"
1237012378

12371-
wallet-stack@^1.0.0-alpha.125:
12372-
version "1.0.0-alpha.125"
12373-
resolved "https://registry.yarnpkg.com/wallet-stack/-/wallet-stack-1.0.0-alpha.125.tgz#54a19d892481cb9bfa4cc4e9d36075956740dc9b"
12374-
integrity sha512-UGArRdHNskCJnefGNJP2Ih1kL3FRnTik6Fru06/Ndh2XUfi8SndKDz4lMRBy0dBizhgGv+rQyQBYsPXJof+GdA==
12379+
wallet-stack@^1.0.0-alpha.127:
12380+
version "1.0.0-alpha.127"
12381+
resolved "https://registry.yarnpkg.com/wallet-stack/-/wallet-stack-1.0.0-alpha.127.tgz#f90c7bbb58af38a2432752637f49a127cb662c57"
12382+
integrity sha512-CawC3NYPkgb+xQ3edbp9bR5C8cRYCVL2rN5Lxpm7jDy1uQmMuolow/L4TsmYCeulhHx/aLeY/ubC80IHJ4tNlQ==
1237512383
dependencies:
1237612384
"@badrap/result" "~0.2.13"
1237712385
"@crowdin/ota-client" "^2.0.1"
@@ -12413,6 +12421,7 @@ wallet-stack@^1.0.0-alpha.125:
1241312421
is-ip "^3.1.0"
1241412422
jwt-decode "^4.0.0"
1241512423
lodash "^4.17.21"
12424+
mixpanel-react-native "^3.2.1"
1241612425
permissionless "^0.2.57"
1241712426
react-async-hook "^4.0.0"
1241812427
react-i18next "^15.4.1"

0 commit comments

Comments
 (0)