Step 3: Mint a Token with Identity

Step 1: Mint Token

In order to utilize External Authorized Search, the Search experience will need to receive the identity param to understand which “external identity” is executing the search. Follow the steps in this guide to learn how to mint your own tokens and add external identities as a query param.

Step 2: Pass Visitor Information to Search for Analytics (Optional)

For more information on analytics, see below.

For analytics, we want to know who each user is so we can understand and analyze visitor level behaviors. In order to get this information, we’ll need to pass the visitor attribute to the Search API for it to be stored in search logs.

In order to set the visitor attribute, the developer sets the visitor object to include the idMethod and id as seen below. Then, when a user engages with click events, the attribute is passed to the API to be stored in search logs for analytics.

  visitor:  { idMethod:"{INSERT_ID_METHOD}", id:"23047230"}
Feedback