Skip to main content
NICE CXone Expert

Scheduled CxOne Expert Maintenance - Oct 26th 11:59 pm PT - Learn More

Expert Success Center

Customer Insights Touchpoint Events

Applies to:
MindTouch (current)
Role required:
Admin

Events

mindtouch-web-widget:user-activity:ready

Fired when the user activity widget is created. The event data contains the following properties:

Name Type
embedId string
 document.addEventListener('mindtouch-web-widget:user-activity:ready', ({ data }) => {
    const embedId = data.embedId;
});

mindtouch-web-widget:user-activity:loaded

Fired when the user activity widget is loaded. The event data contains the following properties:

Name Type
embedId string
widget.userActivityToken string
document.addEventListener('mindtouch-web-widget:user-activity:loaded', ({ data }) => {
    const embedId = data.embedId;
    
    // programmable widget interface contains properties and functions
    const widget = data.widget;
});

Properties

embedId

embedId : string

The id of the widget that uniquely identifies it.

userActivityToken

userActivityToken : string

Retrieve or set the token used to search for user activity and performs a search. Set as a JavaScript object property or as a data-user-activity-token  data attribute on the mindtouch/embed script HTML element.

document.addEventListener('mindtouch-web-widget:user-activity:loaded', ({ data }) => {
    const widget = data.widget;
    widget.userActivityToken = '{example-token}';
    const foo = widget.userActivityToken;
});
<script async="async" src="https://success.mindtouch.com/@embed/{guid}.js"></script>
<script type="mindtouch/embed" id="mindtouch-embed-{guid}" data-user-activity-token="{example-token}"></script>

 

  • Was this article helpful?