Retrieving End-Users Information Pushed to Coveo Usage Analytics

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.

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

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:

    • Pressing the F12 key.
    • Right-clicking anywhere in the page, selecting the Inspect option, and then clicking Network tab.

      DevToolsExample

  2. In the search box, enter a query, and then press 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.

    NameSectionExample

  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 is displayed after Bearer.

    AccessToken

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

    JWTExample

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