Skip to main content
NiCE KnowledgeKnowledge

On October 21, we applied a security patch across all NiCE KM production environments to address a recently disclosed PHP vulnerability. The update was completed without service disruption, and our team continues to monitor the platform closely. No action is required on your part.

NiCE Knowledge Success Center

Customer Insights Touchpoint Events

Applies to:
CXone Mpower Expert (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?