chrome.storage.local) to persist configuration and tracking data. All storage keys are defined in serviceWorker.js:1-6.
Storage key constants
tracker_user_id
Stores a unique identifier for the extension user.string
UUID v4 format
when
Auto-generated on first use via
crypto.randomUUID()string
Permanent - set once and persists across sessions
Usage
The user ID is automatically generated and stored when the extension is installed or whenensureUserId() is first called:
tracker_base_url
Stores the base URL of the tracking server.string
HTTP/HTTPS URL
string
"https://email-tracker.duckdns.org"string
Must start with
http:// or https://, trailing slashes are automatically removedUsage
Set automatically on extension installation:Updating
Users can update the tracker base URL via thetracker:updateTrackerBaseUrl message type:
recent_tracked_emails
Stores an array of recently tracked emails for display in the popup and inbox badges.array
Array of email tracking objects
number
Maximum 100 emails (defined by
RECENT_LIMIT)string
Most recent first (newest emails prepended to array)
Structure
Each item in the array has the following structure:string
required
UUID of the tracked email
string
Recipient email address. Defaults to
"unknown"string
Sender email address. Defaults to empty string
string
Email subject line. Defaults to empty string
string
required
ISO 8601 timestamp of when the email was sent
string
required
URL to the tracking pixel
Usage
Emails are appended to this array when tracked:Enrichment
When retrieved viatracker:getInboxBadgeData, the stored emails are enriched with live tracking data from the server:
dashboard_token
Stores the authentication token for the tracker dashboard API.string
Arbitrary string token
string
Empty string (no token)
string
Sent as
X-Tracker-Token header when fetching email tracking dataUsage
The dashboard token is required to fetch tracking statistics from the server. Without it, all tracking data will show zero opens:Updating
Users can update the dashboard token via thetracker:updateDashboardToken message type: