Open Source Email Tracking

Track newsletter opens.
Own your data.

A lightweight tracking pixel that forwards email opens to PostHog. No vendor lock-in. Deploy in 60 seconds.

Email Sent Newsletter delivered
โ†’
โ—‰
Pixel Loads Subscriber opens email
โ†’
๐Ÿ“Š
PostHog Event captured
โ†’
โœจ
Your Data Export anywhere

Why use Newsletter Pixel?

Break free from platform lock-in and own your subscriber engagement data

๐ŸŽฏ

Invisible 1ร—1 Pixel

A transparent PNG that's completely invisible in emails. Subscribers never know it's there.

๐Ÿ“Š

PostHog Integration

Events flow directly to PostHog via webhooks. Combine email data with your product analytics.

โšก

Lightning Fast

Returns the pixel instantly, then sends the webhook async. Zero impact on email load times.

๐Ÿ”“

No Lock-in

Export data to any CRM, ad platform, or analytics tool. Your engagement data, your rules.

๐Ÿ› ๏ธ

Platform Agnostic

Works with Beehiiv, Mailchimp, ConvertKit, Substack, and any platform that supports HTML.

๐Ÿš€

Zero Maintenance

Deploy once on Vercel's free tier. Scales automatically with your subscriber base.

Simple Integration

Add one line of HTML to your email template

email-template.html
<!-- Add this anywhere in your email HTML -->
<img src="https://your-app.vercel.app/api/pixel?t={{tracking_token}}"
     width="1" height="1" alt=""
     style="display:block;border:0;opacity:0;" />

Get Started in 3 Steps

From zero to tracking in under 5 minutes

1

Deploy to Vercel

Click the deploy button or clone the repo. Set POSTHOG_WEBHOOK_URL and a strong TRACKING_TOKEN_SECRET in Vercel.

2

Configure PostHog Webhook

Create a webhook in PostHog and map the incoming event properties to your desired schema.

3

Add to Your Emails

Generate signed tracking tokens upstream, store them in a provider custom field, and insert the token merge tag into your template.