Introduction to Usertour.js SDK and its core features
Method | Description |
---|---|
usertour.init() | Initialize the SDK with your Usertour.js Token |
usertour.identify() | Identify and track a user |
usertour.group() | Associate a user with a company/group |
<USERTOUR_TOKEN>
, <USER_ID>
, <NAME>
, <EMAIL>
) with your actual valuessigned_up_at
timestamp should be in ISO 8601 formatusertour.js
) is a thin wrapper around the real Usertour.js, which is loaded from our CDN. This design allows you to interact with the imported usertour object immediately. When you make your first method call, the real Usertour.js will be automatically loaded (asynchronously) and injected into the current page. All method calls are automatically queued by the usertour object until the SDK is ready.
The core SDK is optimized for performance:
<script>
tag, you can access the object via window.usertour
. However, be aware that it may not be immediately available, which is why we recommend using the npm package.
Type | Description | Example | Common Use |
---|---|---|---|
string | Text values | "John Doe" | Names, emails |
number | Numeric values | 42 or 1234.56 | Scores, metrics |
boolean | True/false values | true or false | Feature flags |
datetime | ISO 8601 timestamps | "2023-06-14T16:25:49Z" | Event times |
list | Arrays of strings | ["tag1", "tag2"] | Tags, categories |