Retrieve end-user information
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.
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. |
-
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.
-
-
In the search box, enter a query, and then select Enter or click the search button.
-
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
orGET
request tohttps://platform.cloud.coveo.com/rest/search
orhttps://platform.cloud.coveo.com/rest/search/v2
. -
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
. -
Go to https://jwt.io/, and then in the Encoded text box, paste the access token.
In the Decoded section, under userIds, you see the user information pushed to Coveo UA.