Setup
NativeExpress uses Posthog (opens in a new tab) for product analytics and user behavior tracking. In future releases, NativeExpress will utilise Posthog for session replay as well (currently in development).
For more information about Posthog, please refer to the official documentation (opens in a new tab).
Setup
Create a Posthog account
Go to the Posthog Dashboard (opens in a new tab). Create a new account or sign in with your existing account.
Create a new project
Go to your Posthog Dashboard (opens in a new tab). Click on New Project and select React Native. Copy the API key and the Host url.
Add the Posthog Host and API Key to your environment file
Add the Posthog Host and API Key from the previous step to your .env.local
file:
EXPO_PUBLIC_POSTHOG_HOST=""
EXPO_PUBLIC_POSTHOG_API_KEY=""
You're ready to go!
That's it! Now you can start tracking your application's analytics. All events will be automatically tracked to Posthog. In near future, NativeExpress will utilise Posthog for session replay as well.