Mobile SDKDeep Link
React Native
AdStage In-App Event Integration Guide (React Native)
Table of Contents
- Overview
- Installation
- SDK Initialization
- Sending Events
- Standard Event Catalog
- Custom Events
- Setting User Attributes
- Troubleshooting
Overview
The AdStage In-App Event SDK for React Native provides the following features:
- Standard events: 49 predefined events (purchase, sign-up, level up, etc.)
- Type-safe events: Type-safe event delivery based on TypeScript
- Custom events: Freely configurable event names and parameters
- User attributes: User identification and attribute management
- Cross-platform: Identical API for Android/iOS
Installation
Installing via npm / yarn
Installing iOS dependencies
Additional platform-specific setup
For detailed platform-specific setup, refer to the Deep Link Guide.
SDK Initialization
Sending Events
Sending a basic event
TrackEventResult structure
Standard Event Catalog
The AdStage SDK provides 49 standard events. You can send events through type-safe methods.
👤 User Lifecycle
📱 Content Viewing
🛒 E-commerce (7 events)
🎮 Game / Progress / Achievement (8 events)
💎 Virtual Currency (2 events)
💬 Interaction (5 events)
📢 In-App Ads (2 events)
📅 Subscription / Trial (4 events)
💼 Finance-Specific (4 events)
🔧 Miscellaneous (1 event)
Custom Events
In addition to standard events, you can freely define your own events.
Basic custom event
Practical example: feature-specific events
Event naming conventions
| Convention | Example | Description |
|---|---|---|
| Use snake_case | button_click ✅ | Combination of lowercase letters and underscores |
| verb_noun format | add_to_cart ✅ | Action-centered naming |
| Name specifically | purchase_complete ✅ | Clear event meaning |
| Avoid camelCase | buttonClick ❌ | Maintain consistency |
Setting User Attributes
User identification and attribute setting
User attributes you set are automatically included in all events sent afterward.
UserAttributes interface
Usage scenarios
E-commerce Item Structure
EcommerceItem interface
Multiple-item purchase example
Troubleshooting
Events are not being sent
-
Check SDK initialization
-
Check the API Key
- Verify that the correct API Key is set
-
Check the network connection
- Events are sent over the network
Event sending fails on iOS
-
Check Info.plist
- The
NSUserTrackingUsageDescriptionkey is required
- The
-
Check ATT permission status
Event sending fails on Android
-
Check the Maven repository
-
Check minSdkVersion
- Requires a minimum of 24 or higher
Parameters are not being passed
- Parameter keys must use snake_case
- null/undefined values are automatically excluded

