For AI agents: visit https://docs.developers.convert.com/v1.0-web/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
Once the tracking script loads, it exposes a global window.convert object with useful properties and methods. You can use these in your Global JavaScript, Variation JavaScript, or browser console for debugging.
Methods
Cookie Access
Method
Description
Returns
convert.getCookie(name)
Read any cookie by name
string or null
convert.setCookie(name, value, expire?)
Write a cookie (expire in seconds)
—
Visitor Data
Method
Description
Returns
convert.getUserData()
Get visitor geolocation data
{ geo: { country, city, state, continent } }
convert.getDefaultSegments()
Get auto-generated segments
{ browser, devices, source, campaign, visitorType, country }
convert.getVisitorSegments()
Get all segments (default + custom)
Same as above plus customSegments: [ids]
Navigation
Method
Description
convert.redirect(url)
Navigate to a URL (for split URL variations)
convert.refresh()
Reload the current page (for split URL originals)
convert.showBody()
Force-remove the anti-flicker overlay
Logging
Method
Description
convert.sendLog(log, from)
Send a custom log entry to Convert's servers
Properties
convert.currentData
Contains the visitor's current bucketing state — which experiences they're in and which variations they see.