DocumentationOpen and click tracking
Open and click tracking
Tracking pixel and link redirect endpoints for engagement metrics.
When tracking is enabled on a send, MailingCore rewrites links and injects a transparent pixel. Recipients hit public track endpoints; no API key is required (the logId token is opaque).
Endpoints
| Type | Method | Endpoint | Behavior |
|---|---|---|---|
| Open | GET | /track/o/:logId | Returns 1×1 GIF; records open event |
| Click | GET | /track/c/:logId | Records click; 302 redirect to original URL |
:logId identifies the send log row. The API generates tracked URLs when building the message body.
How it works
- You send with tracking enabled (template or
POST /emails/sendoptions). - HTML links become redirect URLs through
/track/c/.... - A pixel
<img src=".../track/o/...">is appended for opens. - Events feed analytics and optional webhooks.
Recipient opens email → GET /track/o/clk_abc → open recorded
Recipient clicks link → GET /track/c/clk_abc → click recorded → redirect to destination
Disabling tracking
For transactional mail where pixel tracking is undesirable, disable tracking on that send or template. Transactional messages still deliver normally without rewrite.
See Analytics for aggregated open and click rates.