Record anonymous visitor sessions and events. The tracking snippet from Capturing Leads via API calls this endpoint for you. Call it directly from your own backend or app if you do not use the snippet.Data is stored against the visitor first. This endpoint never creates a lead. If the visitor is already linked to a lead, their sessions and events are attached to that lead.
Request Body
string
required
A stable ID for the visitor, minted by you or the snippet.
object
Show session properties
string
required
Session ID. The session is only recorded when this is set.
string
Traffic source.
string
Traffic medium.
string
Campaign name.
string
First page URL.
string
Referrer URL.
string
Device type.
string
Browser name.
string | number
Session start as an ISO 8601 string or epoch milliseconds. Defaults to the time of the request.
array
Up to 50 events per request; more returns 400.
Show event properties
string
required
Your unique ID for the event. Sending the same eventId again is counted as a duplicate and not stored twice.
string
required
The event name, for example page_view.
string | number
When the event happened. Defaults to the time of the request.
string
Session the event belongs to. Defaults to session.sessionId.
object
url, path, title and referrer of the page.
object
Free-form data. Larger than 8 KB once serialized and it is dropped.
object
Identifiers used to recognize the same visitor later: ga4ClientId, cookie, deviceId, gclid, fbclid, gbraid, wbraid, fbp and fbc.
An event without an eventId or eventName is skipped and the rest of the batch is still accepted. Text fields are trimmed and capped at 256 characters (2048 for URLs).
Response
boolean
Indicates if the request was accepted.
object
Show data properties
string
The visitor ID.
boolean
Whether a session was stored.
number
New events stored.
number
Events ignored because their eventId was already stored.
This endpoint accepts an API Token (okt_...) or JWT. The account is taken from the token, never from the request body. It requires the crm_api feature and shares the 120 requests/minute limit. The script GET /api/v1/crm/track.js is public and needs no token.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Oktivo Voice Platform","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/oktivo/aTS3se6MyNELWUTF/logo/light.svg?fit=max\u0026auto=format\u0026n=aTS3se6MyNELWUTF\u0026q=85\u0026s=2f82940c5cf5dcb5aff33678e3b6ff49","dark":"https://mintcdn.com/oktivo/aTS3se6MyNELWUTF/logo/dark.svg?fit=max\u0026auto=format\u0026n=aTS3se6MyNELWUTF\u0026q=85\u0026s=bb8901988070c7dc2c895759074f3136"},"favicon":"https://mintcdn.com/oktivo/Yqg3mpJSLcIThKa7/favicon.svg?fit=max\u0026auto=format\u0026n=Yqg3mpJSLcIThKa7\u0026q=85\u0026s=712137687ad55432f88bd070b5eca88e","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://client-backend.oktivo.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"oktivo","hasAudioNarration":false,"actualSubdomain":"oktivo","customDomains":["docs.oktivo.com"],"gitSource":{"type":"github","owner":"op-oktivo","repo":"oktivo-voice-app","deployBranch":"main","contentDirectory":"documentation","isPrivate":true,"mountPath":"","label":"","_id":"6b10efd69ffae5051c4172ec"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0ebddd22f8194a1eec842d","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"API Reference","count":32},{"language":"default","tag":"API v2 (OpenAPI)","count":29},{"language":"default","tag":"API v1 (OpenAPI)","count":20},{"language":"default","tag":"Calls","count":18},{"language":"default","tag":"Webhooks","count":18},{"language":"default","tag":"Guides","count":17},{"language":"default","tag":"Dashboard guides","count":8},{"language":"default","tag":"Overview","count":7},{"language":"default","tag":"Events","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/tracking/track","slug":"/api-reference/tracking/track","pageMetadata":{"title":"Track Visitors","api":"POST /api/v1/crm/track","description":"Send website or app sessions, events and visitor identifiers.","href":"/api-reference/tracking/track"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send website or app sessions, events and visitor identifiers.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Record anonymous visitor sessions and events. The tracking snippet from `,_jsx(_components.a,{href:`/guides/lead-capture`,children:`Capturing Leads via API`}),` calls this endpoint for you. Call it directly from your own backend or app if you do not use the snippet.`]}),`\n`,_jsx(_components.p,{children:`Data is stored against the visitor first. This endpoint never creates a lead. If the visitor is already linked to a lead, their sessions and events are attached to that lead.`}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`visitorId`,type:`string`,required:true,id:`param-visitor-id`,children:_jsx(_components.p,{children:`A stable ID for the visitor, minted by you or the snippet.`})}),`\n`,_jsx(ParamField,{body:`session`,type:`object`,id:`param-session`,children:_jsxs(Expandable,{title:`session properties`,children:[_jsx(ParamField,{body:`sessionId`,type:`string`,required:true,id:`param-session-id`,children:_jsx(_components.p,{children:`Session ID. The session is only recorded when this is set.`})}),_jsx(ParamField,{body:`source`,type:`string`,id:`param-source`,children:`Traffic source.`}),_jsx(ParamField,{body:`medium`,type:`string`,id:`param-medium`,children:`Traffic medium.`}),_jsx(ParamField,{body:`campaign`,type:`string`,id:`param-campaign`,children:`Campaign name.`}),_jsx(ParamField,{body:`landingPage`,type:`string`,id:`param-landing-page`,children:`First page URL.`}),_jsx(ParamField,{body:`referrer`,type:`string`,id:`param-referrer`,children:`Referrer URL.`}),_jsx(ParamField,{body:`device`,type:`string`,id:`param-device`,children:`Device type.`}),_jsx(ParamField,{body:`browser`,type:`string`,id:`param-browser`,children:`Browser name.`}),_jsx(ParamField,{body:`startedAt`,type:`string | number`,id:`param-started-at`,children:`Session start as an ISO 8601 string or epoch milliseconds. Defaults to the time of the request.`})]})}),`\n`,_jsxs(ParamField,{body:`events`,type:`array`,id:`param-events`,children:[_jsxs(_components.p,{children:[`Up to 50 events per request; more returns `,_jsx(_components.code,{children:`400`}),`.`]}),_jsxs(Expandable,{title:`event properties`,children:[_jsx(ParamField,{body:`eventId`,type:`string`,required:true,id:`param-event-id`,children:_jsxs(_components.p,{children:[`Your unique ID for the event. Sending the same `,_jsx(_components.code,{children:`eventId`}),` again is counted as a duplicate and not stored twice.`]})}),_jsx(ParamField,{body:`eventName`,type:`string`,required:true,id:`param-event-name`,children:_jsxs(_components.p,{children:[`The event name, for example `,_jsx(_components.code,{children:`page_view`}),`.`]})}),_jsx(ParamField,{body:`eventTime`,type:`string | number`,id:`param-event-time`,children:`When the event happened. Defaults to the time of the request.`}),_jsxs(ParamField,{body:`sessionId`,type:`string`,id:`param-session-id-1`,children:[`Session the event belongs to. Defaults to `,_jsx(_components.code,{children:`session.sessionId`}),`.`]}),_jsxs(ParamField,{body:`page`,type:`object`,id:`param-page`,children:[_jsx(_components.code,{children:`url`}),`, `,_jsx(_components.code,{children:`path`}),`, `,_jsx(_components.code,{children:`title`}),` and `,_jsx(_components.code,{children:`referrer`}),` of the page.`]}),_jsx(ParamField,{body:`properties`,type:`object`,id:`param-properties`,children:`Free-form data. Larger than 8 KB once serialized and it is dropped.`})]})]}),`\n`,_jsx(ParamField,{body:`identifiers`,type:`object`,id:`param-identifiers`,children:_jsxs(_components.p,{children:[`Identifiers used to recognize the same visitor later: `,_jsx(_components.code,{children:`ga4ClientId`}),`, `,_jsx(_components.code,{children:`cookie`}),`, `,_jsx(_components.code,{children:`deviceId`}),`, `,_jsx(_components.code,{children:`gclid`}),`, `,_jsx(_components.code,{children:`fbclid`}),`, `,_jsx(_components.code,{children:`gbraid`}),`, `,_jsx(_components.code,{children:`wbraid`}),`, `,_jsx(_components.code,{children:`fbp`}),` and `,_jsx(_components.code,{children:`fbc`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`An event without an `,_jsx(_components.code,{children:`eventId`}),` or `,_jsx(_components.code,{children:`eventName`}),` is skipped and the rest of the batch is still accepted. Text fields are trimmed and capped at 256 characters (2048 for URLs).`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates if the request was accepted.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data properties`,children:[_jsx(ResponseField,{name:`visitorId`,type:`string`,id:`param-visitor-id-1`,children:`The visitor ID.`}),_jsx(ResponseField,{name:`sessionRecorded`,type:`boolean`,id:`param-session-recorded`,children:`Whether a session was stored.`}),_jsx(ResponseField,{name:`eventsAccepted`,type:`number`,id:`param-events-accepted`,children:`New events stored.`}),_jsxs(ResponseField,{name:`eventsDuplicated`,type:`number`,id:`param-events-duplicated`,children:[`Events ignored because their `,_jsx(_components.code,{children:`eventId`}),` was already stored.`]}),_jsx(ResponseField,{name:`identifiersRecorded`,type:`number`,id:`param-identifiers-recorded`,children:`Identifiers stored.`})]})}),`\n`,`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint accepts an `,_jsx(_components.strong,{children:`API Token`}),` (`,_jsx(_components.code,{children:`okt_...`}),`) or `,_jsx(_components.strong,{children:`JWT`}),`. The account is taken from the token, never from the request body. It requires the `,_jsx(_components.code,{children:`crm_api`}),` feature and shares the 120 requests/minute limit. The script `,_jsx(_components.code,{children:`GET /api/v1/crm/track.js`}),` is public and needs no token.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Track Visitors","api":"POST /api/v1/crm/track","description":"Send website or app sessions, events and visitor identifiers.","href":"/api-reference/tracking/track"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Record anonymous visitor sessions and events. The tracking snippet from `,_jsx(_components.a,{href:`/guides/lead-capture`,children:`Capturing Leads via API`}),` calls this endpoint for you. Call it directly from your own backend or app if you do not use the snippet.`]}),`\n`,_jsx(_components.p,{children:`Data is stored against the visitor first. This endpoint never creates a lead. If the visitor is already linked to a lead, their sessions and events are attached to that lead.`}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`visitorId`,type:`string`,required:true,id:`param-visitor-id`,children:_jsx(_components.p,{children:`A stable ID for the visitor, minted by you or the snippet.`})}),`\n`,_jsx(ParamField,{body:`session`,type:`object`,id:`param-session`,children:_jsxs(Expandable,{title:`session properties`,children:[_jsx(ParamField,{body:`sessionId`,type:`string`,required:true,id:`param-session-id`,children:_jsx(_components.p,{children:`Session ID. The session is only recorded when this is set.`})}),_jsx(ParamField,{body:`source`,type:`string`,id:`param-source`,children:`Traffic source.`}),_jsx(ParamField,{body:`medium`,type:`string`,id:`param-medium`,children:`Traffic medium.`}),_jsx(ParamField,{body:`campaign`,type:`string`,id:`param-campaign`,children:`Campaign name.`}),_jsx(ParamField,{body:`landingPage`,type:`string`,id:`param-landing-page`,children:`First page URL.`}),_jsx(ParamField,{body:`referrer`,type:`string`,id:`param-referrer`,children:`Referrer URL.`}),_jsx(ParamField,{body:`device`,type:`string`,id:`param-device`,children:`Device type.`}),_jsx(ParamField,{body:`browser`,type:`string`,id:`param-browser`,children:`Browser name.`}),_jsx(ParamField,{body:`startedAt`,type:`string | number`,id:`param-started-at`,children:`Session start as an ISO 8601 string or epoch milliseconds. Defaults to the time of the request.`})]})}),`\n`,_jsxs(ParamField,{body:`events`,type:`array`,id:`param-events`,children:[_jsxs(_components.p,{children:[`Up to 50 events per request; more returns `,_jsx(_components.code,{children:`400`}),`.`]}),_jsxs(Expandable,{title:`event properties`,children:[_jsx(ParamField,{body:`eventId`,type:`string`,required:true,id:`param-event-id`,children:_jsxs(_components.p,{children:[`Your unique ID for the event. Sending the same `,_jsx(_components.code,{children:`eventId`}),` again is counted as a duplicate and not stored twice.`]})}),_jsx(ParamField,{body:`eventName`,type:`string`,required:true,id:`param-event-name`,children:_jsxs(_components.p,{children:[`The event name, for example `,_jsx(_components.code,{children:`page_view`}),`.`]})}),_jsx(ParamField,{body:`eventTime`,type:`string | number`,id:`param-event-time`,children:`When the event happened. Defaults to the time of the request.`}),_jsxs(ParamField,{body:`sessionId`,type:`string`,id:`param-session-id-1`,children:[`Session the event belongs to. Defaults to `,_jsx(_components.code,{children:`session.sessionId`}),`.`]}),_jsxs(ParamField,{body:`page`,type:`object`,id:`param-page`,children:[_jsx(_components.code,{children:`url`}),`, `,_jsx(_components.code,{children:`path`}),`, `,_jsx(_components.code,{children:`title`}),` and `,_jsx(_components.code,{children:`referrer`}),` of the page.`]}),_jsx(ParamField,{body:`properties`,type:`object`,id:`param-properties`,children:`Free-form data. Larger than 8 KB once serialized and it is dropped.`})]})]}),`\n`,_jsx(ParamField,{body:`identifiers`,type:`object`,id:`param-identifiers`,children:_jsxs(_components.p,{children:[`Identifiers used to recognize the same visitor later: `,_jsx(_components.code,{children:`ga4ClientId`}),`, `,_jsx(_components.code,{children:`cookie`}),`, `,_jsx(_components.code,{children:`deviceId`}),`, `,_jsx(_components.code,{children:`gclid`}),`, `,_jsx(_components.code,{children:`fbclid`}),`, `,_jsx(_components.code,{children:`gbraid`}),`, `,_jsx(_components.code,{children:`wbraid`}),`, `,_jsx(_components.code,{children:`fbp`}),` and `,_jsx(_components.code,{children:`fbc`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`An event without an `,_jsx(_components.code,{children:`eventId`}),` or `,_jsx(_components.code,{children:`eventName`}),` is skipped and the rest of the batch is still accepted. Text fields are trimmed and capped at 256 characters (2048 for URLs).`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates if the request was accepted.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data properties`,children:[_jsx(ResponseField,{name:`visitorId`,type:`string`,id:`param-visitor-id-1`,children:`The visitor ID.`}),_jsx(ResponseField,{name:`sessionRecorded`,type:`boolean`,id:`param-session-recorded`,children:`Whether a session was stored.`}),_jsx(ResponseField,{name:`eventsAccepted`,type:`number`,id:`param-events-accepted`,children:`New events stored.`}),_jsxs(ResponseField,{name:`eventsDuplicated`,type:`number`,id:`param-events-duplicated`,children:[`Events ignored because their `,_jsx(_components.code,{children:`eventId`}),` was already stored.`]}),_jsx(ResponseField,{name:`identifiersRecorded`,type:`number`,id:`param-identifiers-recorded`,children:`Identifiers stored.`})]})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://client-backend.oktivo.com/api/v1/crm/track`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer okt_YOUR_API_TOKEN\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"visitorId\": \"v_8f2c1a\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"session\": { \"sessionId\": \"s_41\", \"source\": \"google\", \"medium\": \"cpc\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"events\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"eventId\": \"e_1\", \"eventName\": \"page_view\", \"page\": { \"path\": \"/pricing\" } }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"identifiers\": { \"gclid\": \"Cj0KCQ...\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`202 Accepted`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"visitorId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"v_8f2c1a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sessionRecorded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventsAccepted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventsDuplicated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"identifiersRecorded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-02T04:05:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400 Validation Error`,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VALIDATION_ERROR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid tracking payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"validationErrors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"visitorId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"visitorId is required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorInfo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VALIDATION_ERROR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid tracking payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"visitorId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"visitorId is required\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint accepts an `,_jsx(_components.strong,{children:`API Token`}),` (`,_jsx(_components.code,{children:`okt_...`}),`) or `,_jsx(_components.strong,{children:`JWT`}),`. The account is taken from the token, never from the request body. It requires the `,_jsx(_components.code,{children:`crm_api`}),` feature and shares the 120 requests/minute limit. The script `,_jsx(_components.code,{children:`GET /api/v1/crm/track.js`}),` is public and needs no token.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Track Visitors","api":"POST /api/v1/crm/track","description":"Send website or app sessions, events and visitor identifiers.","href":"/api-reference/tracking/track"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://client-backend.oktivo.com/api/v1/crm/track\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer okt_YOUR_API_TOKEN\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"visitorId\": \"v_8f2c1a\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"session\": { \"sessionId\": \"s_41\", \"source\": \"google\", \"medium\": \"cpc\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"events\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"eventId\": \"e_1\", \"eventName\": \"page_view\", \"page\": { \"path\": \"/pricing\" } }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"identifiers\": { \"gclid\": \"Cj0KCQ...\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"202 Accepted","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"visitorId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"v_8f2c1a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"sessionRecorded\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"eventsAccepted\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"eventsDuplicated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"identifiersRecorded\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"requestId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"timestamp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-03-02T04:05:00.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400 Validation Error","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"VALIDATION_ERROR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invalid tracking payload\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"validationErrors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"field\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"visitorId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"visitorId is required\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"requestId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"errorInfo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"VALIDATION_ERROR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invalid tracking payload\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"field\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"visitorId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"visitorId is required\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Track Visitors","path":"/api/v1/crm/track","servers":[{"url":"https://client-backend.oktivo.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"visitorId":[{"type":"string","description":"A stable ID for the visitor, minted by you or the snippet.","required":true}],"session":[{"type":"object","properties":{"sessionId":[{"type":"string","description":"Session ID. The session is only recorded when this is set.","required":true}],"source":[{"type":"string","description":"Traffic source."}],"medium":[{"type":"string","description":"Traffic medium."}],"campaign":[{"type":"string","description":"Campaign name."}],"landingPage":[{"type":"string","description":"First page URL."}],"referrer":[{"type":"string","description":"Referrer URL."}],"device":[{"type":"string","description":"Device type."}],"browser":[{"type":"string","description":"Browser name."}],"startedAt":[{"type":"object","properties":{},"description":"Session start as an ISO 8601 string or epoch milliseconds. Defaults to the time of the request."}]}}],"events":[{"type":"array","items":[{"type":"object","properties":{"eventId":[{"type":"string","description":"Your unique ID for the event. Sending the same `eventId` again is counted as a duplicate and not stored twice.","required":true}],"eventName":[{"type":"string","description":"The event name, for example `page_view` .","required":true}],"eventTime":[{"type":"object","properties":{},"description":"When the event happened. Defaults to the time of the request."}],"sessionId":[{"type":"string","description":"Session the event belongs to. Defaults to `session.sessionId` ."}],"page":[{"type":"object","properties":{},"description":"`url` , `path` , `title` and `referrer` of the page."}],"properties":[{"type":"object","properties":{},"description":"Free-form data. Larger than 8 KB once serialized and it is dropped."}]}}],"description":"Up to 50 events per request; more returns `400` ."}],"identifiers":[{"type":"object","properties":{},"description":"Identifiers used to recognize the same visitor later: `ga4ClientId` , `cookie` , `deviceId` , `gclid` , `fbclid` , `gbraid` , `wbraid` , `fbp` and `fbc` ."}]}}],"examples":{"example":{"value":{"visitorId":"\u003cstring>","session":{"sessionId":"\u003cstring>","source":"\u003cstring>","medium":"\u003cstring>","campaign":"\u003cstring>","landingPage":"\u003cstring>","referrer":"\u003cstring>","device":"\u003cstring>","browser":"\u003cstring>","startedAt":{}},"events":[{"eventId":"\u003cstring>","eventName":"\u003cstring>","eventTime":{},"sessionId":"\u003cstring>","page":{},"properties":{}}],"identifiers":{}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"Indicates if the request was accepted."}],"data":[{"type":"object","properties":{"visitorId":[{"type":"string","description":"The visitor ID."}],"sessionRecorded":[{"type":"boolean","description":"Whether a session was stored."}],"eventsAccepted":[{"type":"number","description":"New events stored."}],"eventsDuplicated":[{"type":"number","description":"Events ignored because their `eventId` was already stored."}],"identifiersRecorded":[{"type":"number","description":"Identifiers stored."}]}}]}}],"examples":{"example":{"value":{"success":true,"data":{"visitorId":"\u003cstring>","sessionRecorded":true,"eventsAccepted":123,"eventsDuplicated":123,"identifiersRecorded":123}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"oktivo","siteName":"Oktivo Voice Platform","title":"Track Visitors - Oktivo Voice Platform","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T12:30:30.180Z","originalFileLocation":"api-reference/tracking/track.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send website or app sessions, events and visitor identifiers.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Oktivo Voice Platform\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Track Visitors - Oktivo Voice Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send website or app sessions, events and visitor identifiers.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Oktivo Voice Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.oktivo.com/api-reference/tracking/track\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://oktivo.mintlify.site/_mintlify/api/og/v2?division=Tracking\u0026amp;title=Track+Visitors\u0026amp;description=Send+website+or+app+sessions%2C+events+and+visitor+identifiers.\u0026amp;theme=e3c1461211df3246f60cf92d\u0026amp;signature=40a539e24335ea66c66b1143ac0b26862bdbd560b0007ce60a172c0b7d3ea6fd\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Track Visitors - Oktivo Voice Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send website or app sessions, events and visitor identifiers.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://oktivo.mintlify.site/_mintlify/api/og/v2?division=Tracking\u0026amp;title=Track+Visitors\u0026amp;description=Send+website+or+app+sessions%2C+events+and+visitor+identifiers.\u0026amp;theme=e3c1461211df3246f60cf92d\u0026amp;signature=40a539e24335ea66c66b1143ac0b26862bdbd560b0007ce60a172c0b7d3ea6fd\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Oktivo Voice Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.oktivo.com/api-reference/tracking/track\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/tracking/track.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.oktivo.com/#organization\",\"name\":\"Oktivo Voice Platform\",\"url\":\"https://docs.oktivo.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/oktivo/aTS3se6MyNELWUTF/logo/light.svg?fit=max\u0026auto=format\u0026n=aTS3se6MyNELWUTF\u0026q=85\u0026s=2f82940c5cf5dcb5aff33678e3b6ff49\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.oktivo.com#website\",\"name\":\"Oktivo Voice Platform\",\"url\":\"https://docs.oktivo.com\",\"publisher\":{\"@id\":\"https://docs.oktivo.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.oktivo.com/api-reference/tracking/track#webpage\",\"url\":\"https://docs.oktivo.com/api-reference/tracking/track\",\"name\":\"Track Visitors\",\"description\":\"Send website or app sessions, events and visitor identifiers.\",\"dateModified\":\"2026-12-01T12:30:30.180Z\",\"isPartOf\":{\"@id\":\"https://docs.oktivo.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.oktivo.com/api-reference/tracking/track#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.oktivo.com/api-reference/tracking/track#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Oktivo Voice Platform\",\"item\":\"https://docs.oktivo.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Track Visitors\",\"item\":\"https://docs.oktivo.com/api-reference/tracking/track\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.oktivo.com/api-reference/tracking/track#apireference\",\"headline\":\"Track Visitors\",\"name\":\"Track Visitors\",\"description\":\"Send website or app sessions, events and visitor identifiers.\",\"url\":\"https://docs.oktivo.com/api-reference/tracking/track\",\"mainEntityOfPage\":{\"@id\":\"https://docs.oktivo.com/api-reference/tracking/track#webpage\"},\"dateModified\":\"2026-12-01T12:30:30.180Z\",\"publisher\":{\"@id\":\"https://docs.oktivo.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.oktivo.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Oktivo Voice Platform\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Oktivo Voice Platform\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/tracking/track.md","siteName":"Oktivo Voice Platform","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference Overview","href":"/api-reference/overview"},{"title":"Versioning and compatibility","href":"/api-reference/versioning"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Idempotency","href":"/api-reference/idempotency"},{"title":"Pagination and filtering","href":"/api-reference/pagination"},{"title":"Rate limits and headers","href":"/api-reference/rate-limits"},{"title":"Request IDs","href":"/api-reference/request-ids"}]},{"group":"Authentication","pages":[{"title":"Create Token","api":"POST /api/v1/crm/tokens","href":"/api-reference/authentication/create-token"},{"title":"List Tokens","api":"GET /api/v1/crm/tokens","href":"/api-reference/authentication/list-tokens"},{"title":"Delete Token","api":"DELETE /api/v1/crm/tokens/{tokenId}","href":"/api-reference/authentication/delete-token"},{"title":"Rotate Token","api":"POST /api/v1/crm/tokens/{tokenId}/rotate","href":"/api-reference/authentication/rotate-token"}]},{"group":"Calls","pages":[{"title":"Trigger Call","api":"POST /api/v1/crm/calls","href":"/api-reference/calls/trigger-call"},{"title":"Trigger Calls in Bulk","api":"POST /api/v1/crm/calls/bulk","href":"/api-reference/calls/bulk-trigger-call"},{"title":"List Calls","api":"GET /api/v1/crm/calls","href":"/api-reference/calls/list-calls"},{"title":"Get Call Status","api":"GET /api/v1/crm/calls/{contactUID}","href":"/api-reference/calls/get-call-status"},{"title":"Cancel Call","api":"DELETE /api/v1/crm/calls/{contactUID}","href":"/api-reference/calls/cancel-call"},{"title":"List Queued Calls","api":"GET /api/v1/crm/calls/queue","href":"/api-reference/calls/list-queue"}]},{"group":"Events","pages":[{"title":"List Events","api":"GET /api/v1/crm/events","href":"/api-reference/events/list-events"},{"title":"Get Event","api":"GET /api/v1/crm/events/{eventId}","href":"/api-reference/events/get-event"},{"title":"List Event Types","api":"GET /api/v1/crm/events/types","href":"/api-reference/events/event-types"}]},{"group":"Agents \u0026 Analysis","pages":[{"title":"List Agents","api":"GET /api/v1/crm/agents","href":"/api-reference/agents/list-agents"},{"title":"Analysis Schemas","api":"GET /api/v1/crm/analysis-schemas","href":"/api-reference/analysis/analysis-schemas"}]},{"group":"Leads","pages":[{"title":"Capture a Lead","api":"POST /api/v1/crm/leads","href":"/api-reference/leads/create-lead"}]},{"group":"Tickets","pages":[{"title":"Open a Ticket","api":"POST /api/v1/crm/tickets","description":"Open a support ticket, or add to the requester's open ticket.","href":"/api-reference/tickets/create-ticket"}]},{"group":"Tracking","pages":[{"title":"Track Visitors","api":"POST /api/v1/crm/track","href":"/api-reference/tracking/track"}]},{"group":"Shopify","pages":[{"title":"Queue Shopify Confirmation Calls","api":"POST /api/v1/crm/shopify/confirmation-calls","description":"Queue order confirmation calls for a list of Shopify order numbers.","href":"/api-reference/shopify/create-confirmation-calls"},{"title":"Get Confirmation Batch","api":"GET /api/v1/crm/shopify/confirmation-calls/{batchId}","href":"/api-reference/shopify/get-confirmation-batch"}]},{"group":"Webhooks","pages":[{"title":"Create Endpoint","api":"POST /api/v1/crm/webhooks/endpoints","href":"/api-reference/webhooks/create-endpoint"},{"title":"List Endpoints","api":"GET /api/v1/crm/webhooks/endpoints","href":"/api-reference/webhooks/list-endpoints"},{"title":"Get Endpoint","api":"GET /api/v1/crm/webhooks/endpoints/{webhookId}","href":"/api-reference/webhooks/get-endpoint"},{"title":"Send Test Delivery","api":"POST /api/v1/crm/webhooks/endpoints/test-delivery","href":"/api-reference/webhooks/test-delivery"},{"title":"Update Endpoint","api":"PUT /api/v1/crm/webhooks/endpoints/{webhookId}","href":"/api-reference/webhooks/update-endpoint"},{"title":"Regenerate Secret","api":"POST /api/v1/crm/webhooks/endpoints/{webhookId}/regenerate-secret","href":"/api-reference/webhooks/regenerate-secret"},{"title":"List Delivery Logs","api":"GET /api/v1/crm/webhooks/delivery-logs","href":"/api-reference/webhooks/delivery-logs"},{"title":"Delete Endpoint","api":"DELETE /api/v1/crm/webhooks/endpoints/{webhookId}","href":"/api-reference/webhooks/delete-endpoint"}]}]},{"tab":"API v1 (OpenAPI)","pages":[{"title":"API v1 (OpenAPI)","href":"/api-reference/calls/list-call-history"}]},{"tab":"API v2 (OpenAPI)","pages":[{"title":"API v2 (OpenAPI)","href":"/api-reference/calls/list-calls-cursor-pagination"}]}]},"basePath":"","title":"Track Visitors - Oktivo Voice Platform","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DPBgY0Zl.js","snippetPresets-DfrK5Qk-.js","utils-BhOu8MoY.js","style-to-object-BY3JEAdk.js","utils-uJw0j5Le.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Bf5DiN6S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DIo_VyID.js","_Uint8Array-BCCZOmlk.js","isObject-FP1Yky1u.js","ApiExamples-btA_N7J3.js","usePlaygroundInputsStore-D9E8vgOP.js","shallow-BXJ3D3rC.js","isEqual-DTxWZblT.js","CodeSnippets-yZyeAOhB.js","CodeSnippet-DNSgsmyp.js","use-playground-group-access-B6tdpwEQ.js","Page-C_4zetsC.js","api-description-markdown-Bnx5o_aC.js","DynamicMarkdown-DGZbG3dj.js","SectionHeading-Su-XbcWJ.js","MethodPill-BEHdnIWE.js","getPastedJson-MUjpQ42l.js","Check2Icon-HQrwfTCD.js","axios-CsQoIw0U.js"]}