Tracking

Install instructions

Everything needed to install OneLence tracking in a website: the browser-safe publishable key, site id and host, npm and script snippets, the server-side conversion endpoint and a step-by-step guide for coding agents. Secret keys are never returned; the team manages them in OneLence under Settings → API keys.

get/sites/{site}/install-instructions

Request

  • Base URL: https://api.onelence.com/v1
  • URL: https://api.onelence.com/v1/sites/{site}/install-instructions
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://api.onelence.com/oauth/authorize, token URL https://api.onelence.com/oauth/token, scopes: tracking:read)
    • HTTP bearer

Path parameters

sitestring required

Site domain (e.g. example.com) or site id. Defaults to the workspace's newest active site.

Response

Success.

object'install_instructions' required
publishable_keystring nullable required
agent_guidestring required
rulesstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.