Submit tracking events and retrieve personalized zone content from the server side. This endpoint combines event tracking with zone content retrieval in a single request, making it suitable for server-side rendered applications.
Visitor and session IDs should be persisted as cookies on the end user’s browser:
pc_v_{access_key} for the visitor IDpc_sessid_{access_key} for the session IDYour store's unique access key
Your store's secret key for server-side authentication
The full URL of the page being rendered
The end user's browser user agent string
The end user's IP address
Persistent visitor identifier. If omitted, a new one is generated and returned in the response.
Session identifier. If omitted, a new one is generated and returned in the response.
The HTTP referer header value from the end user's request
ISO 4217 currency code (e.g. GBP, USD, EUR)
"GBP"
Array of tracking events to record
Array of zone IDs to retrieve personalized content for
["HP-01", "PP-01"]Successful response with personalized zone content
Visitor identifier. Store as a persistent cookie named pc_v_{access_key}
on the end user's browser.
Session identifier. Store as a session cookie named pc_sessid_{access_key}
on the end user's browser.
Array of error messages, if any
Map of zone IDs to their personalized content. Each zone contains content based on the zone type configured in the PureClarity dashboard.