Mobile SDKDeep Link
React Native
AdStage In-App Events Integration Guide (React Native)
Table of Contents
- Overview
- Installation
- SDK Initialization
- Sending Events
- Standard Event Catalog
- Custom Events
- User Attributes
- Troubleshooting
Overview
AdStage In-App Events SDK for React Native provides the following features:
- Standard Events: 46 predefined events (purchase, sign-up, level-up, etc.)
- Type-Safe Events: TypeScript-based type-safe event sending
- Custom Events: Flexible event names and parameter configuration
- User Attributes: User identification and attribute management
- Cross-Platform: Same API for Android/iOS
Installation
npm / yarn Installation
iOS Dependency Installation
Platform-Specific Configuration
For detailed platform configuration, refer to the Deep Link Guide.
SDK Initialization
Sending Events
Basic Event Sending
TrackEventResult Structure
Standard Event Catalog
AdStage SDK provides 46 standard events. You can send events through type-safe methods.
👤 User Lifecycle (6)
📱 Content View (6)
🛒 E-Commerce (8)
🎮 Game/Progress/Achievement (8)
💎 Virtual Currency (2)
💬 Interaction (5)
📢 In-App Ads (2)
📅 Subscription/Trial (4)
💼 Finance-Specific (4)
🔧 Other (1)
Custom Events
You can freely define events beyond standard events.
Basic Custom Event
Practical Examples: Feature-Specific Events
Event Naming Conventions
| Rule | Example | Description |
|---|---|---|
| Use snake_case | button_click ✅ | Lowercase with underscores |
| verb_noun format | add_to_cart ✅ | Action-oriented naming |
| Be specific | purchase_complete ✅ | Clear event meaning |
| Avoid camelCase | buttonClick ❌ | Maintain consistency |
User Attributes
User Identification and Attributes
Usage Scenarios
E-Commerce Item Structure
EcommerceItem Interface
Multiple Items Purchase Example
Troubleshooting
Events Not Being Sent
-
Verify SDK Initialization
-
Verify API Key
- Ensure correct API Key is configured
-
Check Network Connection
- Events are sent over the network
Event Sending Fails on iOS
-
Check Info.plist
NSUserTrackingUsageDescriptionkey required
-
Check ATT Permission Status
Event Sending Fails on Android
-
Check Maven Repository
-
Check minSdkVersion
- Minimum 24 required
Parameters Not Being Passed
- Use snake_case for parameter keys
- null/undefined values are automatically excluded

