Page context
Tell the API where the visitor is, for better ranking and answers.
A visitor on your pet food page who asks "which conveyor do you recommend?" wants the pet food answer. Send context with a search or a chat message and Indax uses it. Try it: set context.current.url in the Search playground.
| Field | What it is |
|---|---|
session_id | Your id for the visit (≤100 chars). Chat limits count per session. No emails or names. |
current | The page the visitor is on: url, optional title. |
trail | Earlier pages, oldest first. The newest 20 are used. |
referrer, utm | Where the visitor came from. Only the host is kept. |
All fields are optional. Indax keeps only URLs on the company's own domain, reads the visit's topics from those pages, and then:
- Search moves matching results up a little (
context_applied: true). Send"boost": falseto turn it off. - Chat uses the visit as background, never as instructions.
Collect it in the browser
Then send context: window.indaxContext() with each search or chat message. sessionStorage clears when the tab closes; no cookies. If your visitors must opt in to analytics, send context only after they do.