Identity Attributes
To enhance the widget functionality, you can configure several attributes directly in the <script>
tag. These attributes allow you to personalize the widget for individual users.
Supported Attributes
src
String
The URL source of the widget script.
<script src="https://your-widget-url"></script>
data-token
String
The authentication token for verifying secure access to the widget.
data-token="YOUR_TOKEN_HERE"
data-identity
String
A unique identifier for the user, such as email or user ID.
data-identity="user@example.com"
data-profile-*
String
Custom attributes for user profiles to personalize the widget (e.g., name, gender).
data-profile-name="John Doe"
data-profile-gender="male"
data-fullscreen
Boolean
Enables (true
) or disables (false
) fullscreen mode when the widget loads.
data-fullscreen="false"
data-hide-header
Boolean
Shows (false
) or hides (true
) the widget's header for a cleaner interface.
data-hide-header="true"
Example Widget Script with Identity Attributes
Below is an example of embedding the widget with configuration attributes for a personalized experience:
Last updated