Sending Events
How to send custom events using Requestly
You need to initialize the SDK before sending Analytics Events. Check out the initialization steps from here.
Debug & Validate your Analytics Events directly from your App. The SDK provides a simple API to send your events.
Kotlin
Java
// Common Method where you fire your Analytics Events
fun commonAnalyticsMethod() {
RequestlyEvent.send(
<eventName: String>,
<eventData: Map<String, Any>>
)
}
void commonAnalyticsMethod() {
RequestlyEvent.send(
<eventName: String>,
<eventData: Map<String, Any>>
)
}
For ease of access, you can use a common method from where you fire all the other analytics events (Segment, Google Analytics, Amplitude).
Copy link