LogoLogo
SDK ReferenceChangelogBlogStatusGet HelpGo To Dashboard
  • Introduction
  • Basics
    • How ContextDecision Works
    • How ContextPush Works
    • Getting Started
  • Context Decision
    • Logging Conversions
    • Revenue Outcomes
      • Logging Revenue with RevenueCat
    • Adding Entry Points
    • Release Checklist
    • Advanced
      • Custom Signals
      • Alternative Outcomes
      • Custom Outcome Metadata
      • Listening for Good Moments
      • Model Distribution Methods
      • Custom A/B Test Segmentation
      • Analytics & Reporting
  • Context Push
    • Integrating ContextPush
    • Push Notification Providers
      • OneSignal
      • Customer.io
      • Simple Web Request
    • Release Checklist
    • Analytics & Reporting
  • Discover By Use Cases
    • Multivariate Monetization
    • Inline Banners
  • Other Information
    • Glossary
    • Updating Your SDK
    • Minimum SDK Requirements
    • FAQ
    • Get Help
    • Changelog
  • Advanced
    • Custom Configuration
    • Capturing Context In Key Moments
Powered by GitBook
On this page
  • Page Views
  • User Actions
  • Generic Events

Was this helpful?

  1. Advanced

Capturing Context In Key Moments

Learn how your app’s screens and user actions correlate with real-world user contexts.

Our SDK provides event tracking APIs to capture user interactions within your app, enabling insights into usage across real-world contexts.

Logging these events is optional and for informational purposes only. It will not influence your app's behavior.

Page Views

Track when users navigate between different screens. This data helps you understand which screens users interact with most frequently in various real-world contexts.

ContextManager.trackPageView("page_identifier")
ContextSDK.trackPageView("page_identifier");
_contextSdkPlugin.trackPageView("page_identifier");
ContextSDKBinding.TrackPageView("page_identifier");
import { trackPageView } from 'react-native-context-sdk';

trackPageView("page_identifier");

User Actions

Record specific user actions, such as enabling a feature, tapping buttons, creating accounts, or sharing content. Capturing these events helps you gain insights into how user interactions correlate with different real-world scenarios.

ContextManager.trackUserAction("user_tapped_share_button")
ContextSDK.trackUserAction("user_tapped_share_button");
_contextSdkPlugin.trackUserAction("user_tapped_share_button");
ContextSDKBinding.TrackUserAction("user_tapped_share_button");
import { trackUserAction } from 'react-native-context-sdk';

trackUserAction("user_tapped_share_button");

Generic Events

Track custom events that don't fall under the other categories. Alternatively, add this to your existing analytics code to easily log all your existing events into ContextSDK, allowing us to provide you insights without much effort.

ContextManager.trackEvent("custom_event")
ContextSDK.trackEvent("custom_event");
_contextSdkPlugin.trackEvent("custom_event");
ContextSDKBinding.TrackEvent("custom_event");
import { trackEvent } from 'react-native-context-sdk';

trackEvent("custom_event");
PreviousCustom Configuration

Last updated 2 months ago

Was this helpful?