Stonly User ID
After you've installed the widget script on your website, we will automatically create a Stonly User ID to identify each visitor. It is also sometimes referred to as Anonymous ID.
To identify visitors, you need to define another ID, called Customer User ID.
Customer User ID
Inside the Stonly widget code, call the identify
method and pass a user ID, as shown in the media pane. It will become the visitor's Customer User ID.
We recommend identifying visitors by the same ID you already use in your system. For example, you can pass the usernames of logged in users as their Customer User IDs.
You can also use the widget code to assign customer properties and custom events to a user.
Data expiration
User data in Stonly has a set time-to-live (TTL). By default, TTL is set to 90 days. If a user has been inactive for that period, all data associated with them will be deleted.
The timer is separate for each user and reset every time that user is identified.
If you'd like to extend the TTL period, please contact our support team.