Email Operations
Email Activity Logs: What Should Be Recorded?
Published 2026-09-20 · CSV Sender
Workspace activity logs capture campaign lifecycle and send outcomes without storing message bodies, inbox content, or open tracking.
Quick answer
The email activity log in CSV Sender is a workspace-scoped activity_logs table surfaced on Activity in the dashboard. Events include campaign imports, starts/pauses, Gmail connect/disconnect, suppression changes, and per-message send outcomes. Logs intentionally exclude email bodies, subjects, and any inbox-derived content—aligned with send-only OAuth (send Gmail without reading inbox).
What we log (and why)
Typical event_type values:
campaign_csv_imported,campaign_ready,campaign_started,campaign_paused,campaign_stoppedgmail_connected,gmail_disconnectedsuppression_added,suppression_importedmessage_sent,message_send_failed,message_skipped_suppressed
Metadata carries ids like message_id, provider_message_id, or concise error strings—not full MIME.
What we do not log
- Prepared
bodyorsubjecttext (already in message rows with RLS— not duplicated into logs) - Recipient in metadata for every event (campaign views hold PII with access control)
- Opens, clicks, replies, or label changes (no inbox scopes)
- Raw CSV files (parsed in memory; structured rows persist separately)
This boundary supports GDPR-style minimization while letting operators audit who changed campaign state.
Using logs in incidents
When Gmail sending stopped:
- Sort Activity newest-first.
- Correlate
message_send_failedspikes with Gmail API 429 error or auth events. - Check whether email campaign auto-pause fired.
- Cross-reference message statuses (email status failed, email status sent).
Retention and access
Logs inherit workspace isolation via PostgreSQL RLS—only members of the workspace see entries. They are not a public deliverability dashboard; pair with Gmail’s own sending diagnostics for mailbox-level signals.
Contrast with workspace email history
Workspace email history emphasizes per-recipient SENT records across campaigns for skip-previously-contacted logic. Activity logs emphasize events and operator actions—not a CRM timeline.
Example
Operator imports 1,000-row CSV: campaign_csv_imported with row counts. Campaign starts: campaign_started. Suppression skip: message_skipped_suppressed with message id only. Successful send: message_sent storing provider id for support tickets.
FAQ
Can I export activity to SIEM?
Use database exports appropriate to your deployment—product UI shows recent 100 entries.
Do logs include OAuth tokens?
Never—tokens stay encrypted outside logs.
Will failed SMTP appear?
CSV Sender uses Gmail API, not SMTP (Gmail API vs SMTP).
Are unsubscribe clicks logged?
Unsubscribe route updates suppression; see suppression events.
Does logging slow sends?
Inserts are async-safe; failures log to server console only.
Related reading
- Email campaign auto-pause
- Idempotent email sending
- Email suppression list
- Gmail OAuth for email sending
Metadata shape and PII minimization
Activity metadata JSON typically includes internal UUIDs—not recipient email strings—so support staff correlate rows using campaign UI rather than logs alone. This reduces accidental PII leakage when copying log snippets into tickets.
Events not yet needed for v1 analytics
CSV Sender intentionally avoids marketing analytics events (open tracking, click tracking). If product adds exports later, they should remain opt-in and scope-aligned with Gmail send scope.
Correlating logs with Gmail admin tools
Workspace administrators may use Google’s own mail flow dashboards separately. CSV Sender logs do not duplicate Google Postmaster data—they document application decisions (pause, skip suppression, send attempt).
Incident response timeline example
T0 — spike in message_send_failed. T+5m — operator confirms 429 in metadata. T+10m — campaign paused automatically or manually. T+1d — daily limit reduced, campaign resumed. Logs provide narrative for postmortems without exposing message bodies.
Developer note
Failed log inserts print to server console—they do not block sends. Monitor infrastructure logs if activity seems empty despite active campaigns.
GDPR and export requests
Activity logs may be subject to data subject access requests. Because logs minimize message content, exports may need to join message tables under access-controlled queries rather than shipping raw Activity page JSON to third parties.
Train support staff not to paste full metadata blobs containing error strings into public forums—errors might occasionally echo recipient addresses from provider responses even when logs aim to minimize PII.
Production checklist (1)
Before changing live campaigns, re-verify Gmail sender CONNECTED, scan import issues, confirm suppression imports, and align dailyLimit with Gmail sending limits for CSV guidance. Prepared rows in email, subject, and body columns should pass validate CSV before emailing so queue workers spend quota on intentional mail only.
Production checklist (2)
Before changing live campaigns, re-verify Gmail sender CONNECTED, scan import issues, confirm suppression imports, and align dailyLimit with Gmail sending limits for CSV guidance. Prepared rows in email, subject, and body columns should pass validate CSV before emailing so queue workers spend quota on intentional mail only.
Sources
Related articles
Email Operations
Workspace-Level Email History Explained
CSV Sender records campaign imports, sends, failures, and suppression events per workspace—powering skip previously contacted and operational audits.
Email Operations
Why Email Campaigns Should Auto-Pause on Critical Errors
Learn when CSV Sender pauses campaigns automatically on auth failures and failure spikes, how pause_reason is stored, and how to resume safely after fixing root cause.
Gmail
Send Gmail Without Reading Your Inbox: Send-Only OAuth Explained
Learn why CSV Sender requests gmail.send only, what Google cannot access with that scope, and how prepared CSV rows are delivered safely.
Email Operations
What Does Scheduled Mean in an Email Queue?
SCHEDULED rows have scheduled_at or next_retry_at and are eligible for the worker claim_due_messages RPC when campaigns are RUNNING.