Post Impression
Last updated
Last updated
The Post Impression feature in our Amity Social Cloud SDK is a tool designed to collect valuable data regarding post interactions for analytics and reporting purposes. This feature empowers users to gain insights into how their content is performing and who is actively engaging with it. With this feature, users can mark specific posts as viewed and access information about impressions, reach, and the list of users who have viewed each post.
Impressions represent the number of users who viewed the post, while reach represents the number of unique users who viewed the post. Please keep in mind that post impression data won't be updated in real-time but rather almost in real-time.
The SDK provides an ability to mark any post as viewed by invoking markAsViewed()
method within post.analytics
, which will increase the impression and reach count of specific posts. Additionally, users can easily access the impression
and reach
counts directly from the post
object within the SDK.
The 'queryReachedUsers
()' function within UserRepository
provides an ability to query a list of unique users who have viewed the specific story.
This function requires two parameters: viewedType, viewedId.
Here's an explanation of the function parameters:
viewedType: Represents the type of content that has reached the users. In this case, it is type ‘POST’.
viewedId: Corresponds to the ID of the viewed content. In this case, it is post.