User Tracking & Sync
AnnounceKit can track your own users and report their activities in your dashboard. It also ensures that users do not see the same notifications if they are using multiple browsers or computers.
For this to work, provide a unique user identifier in your widget embed code. This ID should be a string and should always be the same for the same user.
announcekit.push({ widget: "https://announcekit.co/widgets/v2/31nbbO", selector: ".announcekit-widget", user: { id: "123456", // Optional additional fields email: "[email protected]", name: "John Doe", }})
When the id parameter is present, AnnounceKit handles the rest. We encourage you to also provide email and name fields so you can receive more useful reports from your users' activities.
Segmentation
In addition to tracking users by ID, email, and name, you can provide custom data for segmentation.
Provide any additional data you wish to segment within the data object. For example, to differentiate paid members and show different posts to them:
announcekit.push({ widget: "https://announcekit.co/widgets/v2/31nbbO", selector: ".announcekit-widget", user: { id: "123456", }, data: { member_type: "trial_user" }})
With this in place, you can create posts filtered by the member_type field.
Make sure you have created a member_type Segment Field before providing data for it — otherwise, you cannot use that property to create segmented posts.
