Configuration settings
The extension stores four configuration values locally (seeextension/src/background/serviceWorker.js:1-6):
- User ID: Auto-generated stable UUID (created on first install)
- Tracker Base URL: Your tracker server endpoint
- Dashboard Token: Authentication token for dashboard API access
- Recent Emails: Local cache of tracked emails (last 100)
Open the extension popup
Click the Email Tracker extension icon in your Chrome toolbar to open the configuration popup. The popup displays:- Your stable User UUID (read-only)
- Tracker Base URL input field
- Dashboard Token input field (password type)
- Recently tracked emails list
- Pixel debug information
Configure tracker base URL
Enter your tracker URL
In the Tracker Base URL field, enter the base URL of your tracker server.For local development:For production (HTTPS required):The URL must start with
http:// or https://. Trailing slashes are automatically removed.Configure dashboard token
The dashboard token authenticates requests to protected dashboard APIs.Enter your token
In the Dashboard Token field, enter the same token value you configured on the server via the
DASHBOARD_TOKEN environment variable.This token is sent in the X-Tracker-Token header for dashboard API requests (see extension/src/background/serviceWorker.js:189).Default values
On first install, the extension sets these defaults (seeextension/src/background/serviceWorker.js:8,11-14):
- Tracker Base URL:
https://email-tracker.duckdns.org(placeholder) - User ID: Generated via
crypto.randomUUID()
Verify configuration
After saving your settings:- The popup’s Recently Tracked Emails section will display “No tracked emails yet” if you haven’t sent any tracked messages
- The Pixel Debug section will show “Debug data will appear after tracking emails” or configuration warnings
- Send a test email from Gmail to verify the configuration (see Extension Usage)
Configuration storage
All settings are stored locally in Chrome’sstorage.local API (see extension/src/background/serviceWorker.js:1-6):
Update configuration
You can update your tracker URL or dashboard token at any time:- Open the extension popup
- Modify the Tracker Base URL or Dashboard Token field
- Click Save URL
Troubleshooting
”Token missing” in debug section
If the Pixel Debug section shows “token missing”, you haven’t configured the Dashboard Token yet. Enter your token and click Save URL.URL validation errors
The extension validates tracker URLs and rejects invalid formats. Ensure your URL:- Starts with
http://orhttps:// - Does not include paths (e.g., use
https://example.com, nothttps://example.com/tracker)
Cannot reach tracker server
If the popup shows connection errors:- Verify your tracker server is running (
curl http://localhost:8090/health) - Check firewall rules allow connections to your tracker URL
- For HTTPS URLs, ensure SSL certificates are valid
Next steps
Once configured:- Learn how to use the extension to track emails and view analytics
- Set up HTTPS for production deployments