Open Tracking
How It Works
When open tracking is enabled for a route, Lettermint automatically injects a transparent 1x1 tracking pixel into your HTML emails. The pixel is inserted just before the closing </body> tag.
Code
When the recipient's email client renders the email and loads images, the pixel request is stored as a tracking observation. Lettermint classifies the observation before it is promoted into customer-visible events, status, webhooks, and default metrics.
Enabling Open Tracking
Via Dashboard
- Navigate to your project
- Go to Routes and select your transactional or broadcast route
- In Route Settings, enable Track Opens
- Save your changes
Via API
Code
Open tracking is only available for transactional and broadcast routes. Inbound routes cannot have tracking enabled.
Per-Email Override
You can override the route's open tracking setting for a single email. This is useful for sensitive transactional messages that use a tracked route, or for one-off emails where you want to enable open tracking without changing the route default.
API sends use settings.track_opens:
Code
SMTP sends use the Lettermint override header:
Code
The override applies only to that email and takes precedence over the selected route's Track Opens setting.
Bot Detection
Many email opens are not from actual humans viewing the email. Email clients, security tools, and privacy features can trigger open events automatically. Lettermint detects these automated interactions to give you accurate engagement data.
Webhook Payload
When a human-countable open is detected, Lettermint sends a message.opened webhook event. Machine, privacy proxy, and security scanner opens are excluded by default and are only sent to webhooks with Include machine events enabled.
Code
Engagement fields:
first_open-trueif this is the first time this recipient opened the emaildevice_type- Device category:desktop,mobile, ortabletclient_type- Client category:browser,email_client, etc.client_name- Specific client name:Chrome,Safari,Outlook, etc.
Bot detection fields:
bot.detected-trueif the open appears automatedbot.probability- Confidence score from 0-100 (higher = more likely a bot)bot.classification- Source classification such asgenuine,privacy_proxy,security_scanner, orgeneric_botbot.proxy_type- Known proxy family when applicable, otherwisenullbot.reason_codes- Machine-readable reasons behind the classificationbot.machine-truewhen the open is classified as machine, privacy, or security activitybot.counts_for_metrics- Whether the open contributes to default engagement metrics
See Bot Detection Field Values for classification and proxy_type values, plus reason_codes guidance.
Limitations
HTML Emails Only
Open tracking requires HTML content. The tracking pixel cannot be added to:
- Plain-text only emails
- Emails where the recipient views only the text part
Token Expiration
Tracking tokens expire 30 days after the email is sent. Opens after this period are not recorded. This protects recipient privacy and reduces long-term data storage.
Privacy Proxies
Some email clients pre-fetch images to protect user privacy:
- Apple Mail Privacy Protection - Loads all images automatically, regardless of whether the user opens the email
- Hey Email - Similar privacy-first image loading
- ProtonMail - Images loaded through proxy servers
Lettermint excludes identified privacy proxy opens from default metrics and webhooks. They remain available to opted-in webhooks and reporting requests that include machine activity.
Image Blocking
Some recipients configure their email clients to block images by default. These opens will only be recorded if the recipient explicitly loads images.
Best Practices
- Don't rely solely on opens - Click tracking provides stronger engagement signals
- Consider privacy - Be transparent with recipients about tracking in your privacy policy
- Monitor trends - Individual open rates vary; focus on aggregate trends over time
Next Steps
- Click Tracking - Track link clicks for deeper engagement insights
- Webhook Events - Full payload reference for tracking events