> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linquid.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Pixel Stats and Embed

> Pixel analytics counters and SDK/embed snippet endpoints

# 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
