Skip to main content
MindTouch 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 parameters:

  • embedId <String> - The ID string of the widget that uniquely identifies it
 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 parameters:

  • embedId <String> - The ID string of the widget that uniquely identifies it
  • widget <Object> - The object interface to the widget that contains the properties and/or functions listed below
document.addEventListener('mindtouch-web-widget:user-activity:loaded', ({ data }) => {
    const embedId = data.embedId;
    const widget = data.widget;
});

Properties

userActivityToken <String>

  • Gets the token used to search for user activity
  • Sets the token used to search for user activity and performs a search. Set as a JavaScript object property or as adata-user-activity-tokendata attribute on the mindtouch/embed script HTML tag
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?