Analytics
Firework Analytics
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
FireworkSdk.analytics.register(this)
}
override fun onDestroy() {
super.onDestroy()
FireworkSdk.analytics.unregister(this)
}@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FireworkSdk.INSTANCE.getAnalytics().register(this);
}
@Override
protected void onDestroy() {
super.onDestroy();
FireworkSdk.INSTANCE.getAnalytics().unregister(this);
}Now let's see how to subscribe to the specific analytics event
@FwAnalyticCallable
fun onSpecificEvent(event: SpecificEventType) {
// Do whatever you want with the event
}@FwAnalyticCallable
void onSpecificEvent(SpecificEventType event){
}Supported events
Video Lifecycle Playback Tracking
Video Analytics Events Tracking
Share Button Analytics Events Tracking
CTA Button Analytics Events Tracking
Livestream Analytics Events Tracking
Capturing events in smaller scopes
Events and Callback Payload
Identifying Widget Source Using feedId
Understanding feedId
Accessing Widget feedId
Matching Events to Widgets
Last updated
Was this helpful?