E-commerce — Product Purchase Flow
E-commerce — Product Purchase Flow
Track the full purchase funnel from product view through to order completion. Use Tappd’s standard e-commerce event names so your data maps cleanly to built-in dashboard reports.
User Authentication — Sign Up, Login, and Logout
User Authentication — Sign Up, Login, and Logout
Track every step of the authentication flow and link anonymous pre-signup activity to the newly created account.Sign up flow:Login flow:Logout — reset the SDK to start a new anonymous session:
Push Notifications — Complete Setup
Push Notifications — Complete Setup
This example covers the full push notification lifecycle: requesting permissions, getting the FCM token, registering it with Tappd, handling token refreshes, and tracking notification opens.
Subscription Management — Upgrade and Cancellation
Subscription Management — Upgrade and Cancellation
Track plan changes and update the customer profile in one flow.Subscription upgrade:Subscription cancellation:
App Lifecycle — Foreground, Background, and Cleanup
App Lifecycle — Foreground, Background, and Cleanup
Track when the app moves between states and clean up the SDK when it goes to the background.
Form Tracking — Field Focus and Submission Events
Form Tracking — Field Focus and Submission Events
Track individual field interactions and form submissions to understand where users drop off in your sign-up funnel.
Context Provider Pattern — Recommended Architecture
Context Provider Pattern — Recommended Architecture
The recommended way to share the SDK instance across your app is a React Context. Create the provider once at the root, then consume it with the Wrap your app root (
useTappd hook in any component.Create the context (contexts/TappdContext.js):App.js):Error Tracking — Global React Native Error Handler
Error Tracking — Global React Native Error Handler
Capture unhandled JavaScript errors and fatal crashes with React Native’s global error handler, then forward them to Tappd for analysis.
Deep Linking — Track Cold and Warm Starts
Deep Linking — Track Cold and Warm Starts
Track every deep link open and distinguish between cold starts (app was not running) and warm starts (app was already in memory).