Retrieve end-user information

You may want to inspect the end-users information such as their security identity sent by your search interface to Coveo Usage Analytics (Coveo UA). Collecting the proper user data is crucial to ensure that your search solution is delivering a personalized experience for each individual.

Example

While reviewing visits in the Visit Browser, you noticed some intriguing values in the User Name column and wondered where those values came from.

To retrieve end-user information pushed to Coveo UA

Note

Google Chrome is the browser used in this article. Although you can access the developer tools using any browser you like, the process may differ.

  1. In the page where the Coveo search component is integrated, access the Network tab of the Google Chrome developer tools by either:

    • Select F12.

    • Right-clicking anywhere on the page, selecting the Inspect option, and then selecting Network tab.

      Dev tools example
  2. In the search box, enter a query, and then select Enter or click the search button.

  3. In the Name column of the network request table, select the HTTP request which corresponds to the query you just submitted.

    This should be the latest POST or GET request to https://platform.cloud.coveo.com/rest/search or https://platform.cloud.coveo.com/rest/search/v2.

    Name section example
  4. In the HTTP request you just opened, in the Headers tab, under the Request Headers section, next to Authorization, select and copy the access token that’s displayed after Bearer.

    Access token
  5. Go to https://jwt.io/, and then in the Encoded text box, paste the access token.

    JWT example

In the Decoded section, under userIds, you see the user information pushed to Coveo UA.