Skip to main content

Pixel Stats and Embed

Endpoints

  • GET /api/pixels/:id/stats
  • GET /api/pixels/:id/embed-code

Access

  • Permission: pixels:read

GET /api/pixels/:id/stats

Returns pixel-level counters:
  • fires
  • uniqueVisitors
  • conversions
  • lastFiredAt
  • conversionRate
These counters are maintained in workspace storage and exposed for dashboard views.

GET /api/pixels/:id/embed-code

Returns install snippets for client-side integration. Includes:
  • standard web SDK snippet
  • advanced snippet with inline config
The snippet uses workspace redirect domain and pixel code.

Common errors

  • 404: pixel not found in workspace scope