Email Analytics: Tracking and Monitoring Transactional Emails
Monitoring your transactional email performance is essential for ensuring reliable delivery and optimizing user experience.
Email Logs
OnePush provides comprehensive email logs for every email you send. Access logs via the dashboard or API.
Viewing Logs in Dashboard
Navigate to the Email Logs section to see:
- All sent emails
- Delivery status
- Open and click events
- Bounce and spam complaint information
- Timestamps for all events
Accessing Logs via API
// Get all emails
const emails = await onepush.logs.list({
limit: 100,
page: 1,
});
// Get specific email
const email = await onepush.logs.get(emailId);
// Search emails
const results = await onepush.logs.search({
to: 'user@example.com',
status: 'delivered',
from: '2024-01-01',
to: '2024-01-31',
});Key Metrics to Monitor
Delivery Rate
Track what percentage of emails are successfully delivered. Aim for 95%+ delivery rates.
Open Rate
Monitor how many recipients open your emails. Transactional emails typically have higher open rates than marketing emails.
Click Rate
Track which links recipients click. This helps you understand what content resonates.
Bounce Rate
Monitor hard and soft bounces. High bounce rates indicate list quality issues.
Spam Complaint Rate
Keep spam complaints below 0.1%. High complaint rates damage your sender reputation.
Setting Up Alerts
Configure alerts for critical events:
High Bounce Rate
Alert when bounce rate exceeds 5% in a 24-hour period.
Delivery Failures
Get notified when delivery rate drops below 90%.
Spam Complaints
Alert immediately when spam complaints are detected.
Using Webhooks for Real-Time Monitoring
Set up webhooks to track events in real-time:
app.post('/webhooks/onepush', async (req, res) => {
const event = req.body;
// Update analytics database
await updateAnalytics(event);
// Check for anomalies
if (event.type === 'email.bounced') {
await checkBounceRate();
}
res.status(200).send('OK');
});Exporting Data
Export email logs for external analysis:
const logs = await onepush.logs.export({
format: 'csv',
startDate: '2024-01-01',
endDate: '2024-01-31',
});Dashboard Analytics
OnePush dashboard provides:
- Delivery rate trends
- Open and click rate charts
- Bounce and complaint breakdowns
- Geographic delivery statistics
- Domain reputation scores
Best Practices
- Review logs daily during initial setup
- Set up automated alerts for critical metrics
- Export data regularly for long-term analysis
- Monitor domain reputation scores
- Track metrics by email type (welcome, password reset, etc.)
Regular monitoring helps you catch issues early and maintain high deliverability rates for your transactional emails.
