Transparent tracking pixel for email open detection
📌 Description This workflow serves a 1x1 transparent PNG image via a webhook, which can be embedded in an email to track when the email is opened. When the ...
🔌 Nodes & Integrations Used (1)
📖 Implementation & Setup Guide
📌 Description This workflow serves a **1x1 transparent PNG image** via a webhook, which can be embedded in an email to **track when the email is opened**. When the image is loaded by the recipient's email client, the webhook is triggered, optionally capturing a `userId` to identify who opened the email.
📂 Workflow Steps
- **Webhook Trigger** (`Request img`)
- - **Path:** `/webhook/change-with-your-id`
- - Triggered by an HTTP request (e.g. when the image is loaded in an email).
- - Accepts a query parameter `id` to identify the recipient.
2. **Set Base64 Data** (`Create data pix`) - Creates a variable `data` containing a Base64-encoded transparent PNG image (1x1 pixel).
3. **Convert to Binary** (`Create img bin`) - Converts the Base64 `data` string into a binary file. - Sets MIME type to `image/png`.
4. **Respond to Webhook** (`Respond to Webhook`) - Sends the binary image file in the HTTP response.
5. **Logging** (`Do anything to log`) - Placeholder node to log or process the `id` or request metadata. - You can access the `id` using `{{$json["query"]["id"]}}`. - You can also use any parameter you want
✉️ How to Use in Emails
Embed the image in an HTML email like this:
```html <img src="https://<your-n8n-instance>/webhook/db4880e7-2134-4994-94e5-a4a3aa120440?id=1234" width="1" height="1" alt /> ```
When the email is opened and the image is loaded, the workflow will be triggered.
🛠️ Notes - Some email clients block images by default; this may prevent tracking. - You can enhance the workflow to store open events in a database, log the timestamp, IP, or user agent. - Make sure to comply with data privacy and consent regulations (e.g. GDPR).
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Transparent tracking pixel for email open detection.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related Email & Outreach Workflows
View All in Email & Outreach →Abandoned cart recovery for Shopify via Gmail Google Sheets T
Who is this for? This template is ideal for solo store owners, eCommerce marketers, automation beginners, or anyone using Shopify and Gmail who wants to reco...
Add new leads in Lemlist from Airtable
This workflow allows you to add new leads in Lemlist from Airtable. !workflow-screenshot Airtable node: This node lists all the emails that are stored in you...
Add Subscriber and Send Email Campaign
Production-ready n8n automation template for Add Subscriber and Send Email Campaign built by AhiXLight. Seamlessly connects Sendy with 3 configured nodes.
Add new contacts from HubSpot to the email list in Mailchimp
This workflow adds new HubSpot contacts to the Mailchimp email list. Prerequisites - HubSpot account and HubSpot credentials - Mailchimp account and Mailchim...