Identify your project
Choose your React app in DevTools and open App connection. The last segment of your content URL is the public project slug. Use the same DevTools origin for analytics.
Connect native activity
In React Native or Expo, ask for consent before recording. Keep one random UUIDv4 per installation. Use fixed screen and action names such as search or recipe_saved. Keep account IDs, entered text, URLs and screen parameters out of events.
Send JSON with an HTTPS POST to /api/app-analytics/{project-slug}/events. Include consent: true, environment: "production", the platform (ios or android), the installId and one to twenty events. Each event needs a UUIDv4 id, a UTC ISO timestamp in occurredAt, and a type.
first_openmarks the first measured open after consent. Use the installation UUID for its event ID.session_startmarks a cold launch or return after 30 minutes in the background.screen_viewincludes the fixednameof a screen the user reached.interactionincludes the fixednameof an action the user performed.
Send events from production releases with credentials omitted. Keep pending events and their IDs across retries for up to seven days. Clear queued activity when someone turns sharing off. Exclude TestFlight, Play test tracks, development builds and editor previews.
Connect a React web app
Import createAppStats from the browser module, hosted on your DevTools origin. Supply the project slug, environment, and allowed screen and action names. Call setConsent(true) after opt-in, then call screen(name) on navigation and interaction(name) on actions. Use setConsent(false) when sharing is turned off. Connect the app’s deployed HTTPS origin in App connection so Stats can recognize it.
Add store downloads
In App Store Connect Analytics, select daily First Time Downloads for your app. In Google Play Console Statistics, choose User acquisitions → New users with daily intervals. Keep each report’s date. Play installation reports use Pacific time and app activity in DevTools uses UTC. Apple metric definitions · Google Play metric definitions
In the project’s Stats, choose Record downloads to enter a daily count or import a CSV with columns date,store,downloads. Use app_store or google_play. A new entry for a store and date replaces the previous count. Missing dates remain unreported.