Immediate Webhook Notification
You might receive an immediate message.opened webhook notification after a message is sent, even if the email recipient has not opened the email.
Causes: Immediate Webhook Notification
Nylas detects that an email has been read by embedding an image pixel in the message HTML, and detecting when that image pixel is downloaded to infer that the message was opened. Only the initial download is tracked.
- CDNs can cache the image pixel across multiple proxies, which results in multiple reads.
- Gmail caches all images in the message as the Gmail servers receive them, which returns a
message.opened
webhook.
Solutions: Immediate Webhook Notification
The following options can help you work around this issue.
- Use open tracking with link clicks to determine that messages have been opened and clicks have been clicked.
- Remove recent objects with a
timestamp
of less than 1 minute of the messagesent_at
time.
"recents": [
{
"ip": "12.234.567.89",
"link_index": 0,
"id": 0,
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36",
"timestamp": 1602623980.
}
]