What is User Tracking?
AnnounceKit is a platform for product managers, marketers and designers to create, manage, and measure the effectiveness of product announcements. It lets them track how users interact and respond, giving them valuable information about how people react to their announcements.
With AnnounceKit's User Tracking, you can do four things.
Record and identify your users, and track their feedback or whether they opened your widget. Every tracked user gets a row in Audience, with their stage, their engagement over the last 30 days, their NPS score and when they were last seen. Names and emails are blurred in the picture below.
See who viewed and clicked your posts. When a post was shown in a booster or sent by email, its page lists the identified users who saw it and those who clicked a link in it, and reactions and comments carry the person's name instead of "Someone". See How can I know whether users see my announcements?
Calculate unread counters, which are later used for Boosters or unread notifications in widgets. AnnounceKit keeps a record of the posts each user has seen, so a user does not get the same notification again, even on another browser or computer. The badge below tells a user that five posts are new to them.
Send targeted announcements by creating segments of user groups. A segment is built from rules like the one below.
To learn how segments work, see Target posts, in-app notifications and NPS surveys at a segment.
How to activate User Tracking?
Here are the steps to activate User Tracking for your workspace.
- Open Widgets in the sidebar and click New widget. Set it up and save it.
- Open the widget and go to its Implementation tab. The code you need is created for you under HTML and Javascript. Click Copy Widget Code, or use Email to developer to send the instructions to your developer. The implementation should take no more than 30 minutes.
- Add a
userobject with a uniqueidto the widget code, as shown further down. This is the step that turns User Tracking on.
The New widget button is at the top right of the Widgets page.
This is how the code looks on the Implementation tab of a saved widget.
IMPORTANT: To make user tracking work, you need to provide a unique user identifier in your widget embed code. The id should be a string and always the same for the same user.
You can also send the optional fields email and name, marked in red below. We recommend them, because they make your reports easier to read.
If the user object and its id are in the code, our widgets handle the rest and start recording your users in Audience.
Here is the same code as text. Only id is required:
announcekit.push({
widget: "https://announcekit.co/widgets/v2/31nbbO",
selector: ".announcekit-widget",
user: {
id: "123456",
// Optional additional fields
email: "user@example.com",
name: "John Doe",
}
})Alternatively, you can set User Tracking up by consulting our widget API documentation.
Send segmentation data
Apart from the ID, email and name, you can send your own data about each user, to build segments from it. Put it in a data object. All of the fields under data are yours to choose. For example, to tell trial users from paying members and show them different posts:
announcekit.push({
widget: "https://announcekit.co/widgets/v2/31nbbO",
selector: ".announcekit-widget",
user: {
id: "123456",
},
data: {
member_type: "trial_user"
}
})A field can be used for targeting only when it is on your workspace's list of Segmentation fields. To add it:
- Open Settings and go to Segmentation.
- Under Add New Field, type the field's name (here member_type) in Field name.
- Click Add field.
The form looks like this, with the field name typed in.
A new key is also added to the list by itself the first time your widget sends it, as long as the workspace has 20 fields or fewer. Above that, a key that is not on the list is dropped, so add it yourself first. The list holds up to 25 fields.
Every value is stored as text, and a value longer than 1,024 characters is not stored.
Without the segmentation fields both in the widget code and in the dashboard, the users will not be segmented for your workspace.
To target posts, in-app notifications and NPS surveys with this data, see Target posts, in-app notifications and NPS surveys at a segment.
See also: Widget Setup & API, Widget Setup & API and Widget Setup & API.