Analytics (React Native)
Last updated
Was this helpful?
Last updated
Was this helpful?
As follows, you could set FireworkSDK.getInstance().onVideoPlayback
to receive video playback events. The event type is .
As follows, you could set FireworkSDK.getInstance().onVideoFeedClick
to receive video feed click events. The event type is .
As follows, you could set FireworkSDK.getInstance().liveStream.onLiveStreamEvent
to receive live stream events. The event type is .
You could use onVideoFeedGetFeedId callback to get feed id for VideoFeed and StoryBlock during component initialization. The related reference links are:
Currently, the host app could get feed id from some event callbacks. For example:
As follows, you could set FireworkSDK.getInstance().liveStream.onLiveStreamChatEvent
to receive live stream chat events. The event type is .
If you would like to customize the product click event handling, you could use to support this use case. For example, you could open your product detail page when the user clicks on the product. We call this outstream PDP.
If you would like to use the SDK default behavior to handle the product click event, you could use to support this use case. The SDK default behavior is opening Firework product detail page when the user clicks on the product. We call this instream PDP.
You could use callback to receive shopping CTA click events.
If you would like to customize the overlay CTA click event handling, you could use to receive video overlay CTA click events. For example, you could open your product detail page when the user clicks on the overlay CTA.
If you would like to use the SDK default behavior to handle the overlay CTA click event, you could use (eventName is VideoPlaybackEventName.ClickCTA
) to receive video overlay CTA click events. The SDK default behavior is opening the CTA link using the SDK webview or system browser when the user clicks the overlay CTA.
The host app can record a purchase which will help get a full picture of the user journey flow. To do this, call whenever the purchase happens. The following are the sample codes: