Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

InMoment (formerly Wootric) Destination


InMoment (formerly Wootric)(link takes you to an external page) is the modern customer feedback management platform that brands around the globe use to make experience their competitive advantage.

The InMoment Destination is open-source. You can browse the code on GitHub(link takes you to an external page).

If you notice any gaps, out-dated information or simply want to leave some feedback to help us improve our documentation, contact InMoment Support!


Getting Started

getting-started page anchor
  1. From the Segment web app, click Catalog.
  2. Search for "InMoment (Wootric)" in the Catalog, select it, and choose which of your sources to connect the destination to.
  3. In the destination settings, enter your InMoment "Account Token". You can retrieve this from your InMoment Settings > Your unique Account Token. It should look like NPS-XXXXXXXX.
  4. If you're using Segment's client-side analytics.js library, your changes appear in the Segment CDN in about 45 minutes, and then Analytics.js starts asynchronously loading InMoment's JavaScript library onto the page and begins sending data.

Mobile

mobile page anchor

Mobile implementations require additional settings.

Navigate to your InMoment Settings > API to add your Client ID to the respective part of the Segment Settings UI.

IMPORTANT: The incoming responses and surveys will not be tied to a user until you identify your user.


If you're not familiar with the Segment Specs, take a look to understand what the Identify method does. An example call would look like:

1
analytics.identify('userId123', {
2
email: 'hello@example.com',
3
createdAt: '2018-08-03T15:28:46.493Z',
4
language: 'EN'
5
});

When you call Identify, the user's information is passed to InMoment to check eligibility during survey responses. Segment's special traits recognized as InMoment's standard user profile fields (in parentheses) are:

Segment ParameterInMoment ParameterDescription
emailwootricSettings.emailThe email of this user.
createdAtwootricSettings.created_atISO 8610 timestamp. InMoment requires the timestamp to be rounded to the nearest second so we will make this conversion for you.
languagewootricSettings.languageLanguage for Net Promoter Score (NPS).

When you call Track, the user's information is passed along with the event name to InMoment to check eligibility during survey responses.

(warning)

Named Track calls require you to enable Targeted Sampling in your InMoment Account

After enabling the Targeted Sampling feature in your InMoment account, you must ensure your InMoment event names are exactly the same as the one used in the Track call.


If you aren't familiar with the Segment Spec, you should first read about what the Page method does. An example call would look like:

analytics.page()

Segment sends Page calls to InMoment as a pageview.

When you call Page, InMoment tracks the URL, page name, and page path that you are currently on. You can use this information in the InMoment Settings to trigger surveys by using InMoment's Targeted Sampling feature. InMoment recognizes the following Segment Page properties as the following page fields:

Segment ParameterInMoment ParameterDescription
namewootricSettings.emailThe name assigned to this page.
pathwootricSettings.page_info.pathThe path portion of the URL of the page. Equivalent to the canonical path which defaults to location.pathname from the DOM API.

Segment lets you change these destination settings from the Segment app without having to touch any code.

Property nameTypeRequiredDescription
Account Tokenstring
required

You can find your account token in your Wootric Settings under 'Install JS Beacon'. It should look something like this: NPS-4aeb53c1.


Client IDstring

Optional

Only required for the Wootric mobile integration. You can find your Client ID in your Wootric Settings.