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.
The tracking script exposes a command queue via window._conv_q. You can push commands to this queue before or after the script loads — commands pushed before the script loads are processed once it initialises.
Important: Always use window._conv_q = window._conv_q || [] — never assign an empty array directly, as this overwrites any commands already in the queue.
Command Format
Commands can use the modern object format or the legacy array format:
Signal that consent has been given — flushes queued events and re-runs the script
—
When runExperiences is false, both experiments and data collection are blocked until consent. When true (default), experiments display immediately but data collection waits.
Timing: Listeners must be registered before the script processes them — either before the script loads, or from Global JavaScript. Listeners added after the script initialises will miss events that already fired.