visitorId
and sessionId
are required in every signal (query, click, cartadd, and purchase) to identify the user and session.queryId
is required in every signal (query, click, cartadd, and purchase) to identify the query, including refinements like facet selection.searchTerms
is required in the query signal to return results.cartId
is required in the cartadd and purchase signals for cart activity and must be replaced with a different UUID for each new user cartadd signal.orderId
is optional, and is used on the purchase_complete signal and identifies an actual purchase as opposed to an attempted purchase.visitorId
is typically stored in localStorage
to persist across sessions, and sessionId
is usually stored in sessionStorage
to reset between sessions.
Other parameters are detailed in the Signals API specification.
visitorId
and sessionId
universal unique identifiers (UUIDs).
queryId
UUID and send a query signal.
queryId
generated in the query request that returned the results on which the user clicks.
cartId
and send a cart-add signal.
orderId
along with the purchase signal using the cartId
from the cart-add signal. After the purchase, the site must replace that cartId
with a new UUID for the next cart-add signal.
queryId
UUID and new query signal, or if you handle that interaction in a different way.