Personalization with StorifyMe
In case you want your stories to be dynamic and to show different content to different users you would can do that in a few simple steps.
Just map your dynamic personal data in StorifyMe Admin app, and after you provide it with the SDK, the stories would automatically change and adapt to the user that is consuming content making them feel VIP with stories built just for them.
You need to have the working StorifyMe setup as described in Initial SDK Setup
Set customerId
for User Actions Tracking
To track user actions within the StorifyMe Widget, such as when a user clicks on a poll or performs any other action, you can set the customerId
using the following steps:
storiesView.config = StorifyMeWidgetConfig.Builder()
.setCustomerId("customer-id-example")
.build()
Invoking build()
multiple times will override the previously set configuration.
By setting the customerId
for user actions tracking, you enable the StorifyMe SDK to capture and provide information about the specific user actions performed within the widget. The customerId can be used to identify the user or correlate their actions with specific events or data in your system.
Set personal and dynamic data
Enable dynamic personalization of elements using StorifyMe's Dynamic data
feature in the app. Then, map the personal fields with the elements.
From the SDK, easily pass personalized data through to dynamically modify and adapt text, images, videos and other elements and provide a tailored user experience within your application for your user.
It can be set with setDynamicData(dynamicIntegrationId:, data:)
multiple times for different dynamicIntegrationId
.
storiesView.setDynamicData(
"example-dynamic-integration-id",
JSONObject()
.put("first-example-key", "first-example-value")
.put("second-example-key", "second-example-value")
)
Set Content Type for Widget
You can now specify the type of content to be displayed within the StorifyMe widget using the setContentType
method. This feature allows you to filter and display stories or reels based on their status, such as liked, bookmarked, or all.
Enum: StorifyMeWidgetContentType
The StorifyMeWidgetContentType
enum represents the content type to be displayed within a StorifyMe
widget.
LIKED
: Display only liked stories or reels within the widget.BOOKMARKED
: Display only bookmarked stories or reels within the widget.ALL
(Default): Display all stories or reels within the widget.
Method: setContentType
This method sets the content type for the StorifyMe widget.
storiesView.config = StorifyMeWidgetConfig.Builder()
.setContentType(StorifyMeWidgetContentType.LIKED)
.build()