> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendpost.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Tracking & Analytics

> Track opens, clicks, bounces, and configure rate limiting for Custom SMTP emails in SendPost.

Custom SMTP traffic is treated like any other TPSP in SendPost's analytics: same dashboard, same stat tables, and the same per-provider throttling (27 ISP categories). No special filtering is required.

***

## Open Tracking

When `trackOpens` is enabled in your send request:

* SendPost injects a tracking pixel pointing to SendPost's `/track/open` endpoint
* Opens are recorded as **CS Open** events (ID: 65)
* View open rates in the SendPost dashboard and events page

***

## Click Tracking

When `trackClicks` is enabled:

* SendPost rewrites links to SendPost's `/track/click` endpoint
* Clicks are recorded as **CS Click** events (ID: 66)
* View click rates and clicked URLs in the dashboard

***

## Unsubscribe Tracking

Unsubscribe headers and links point to SendPost's `/track/unsubscribe` endpoint. Use the `{{unsubscribe}}` template variable or configure unsubscribe headers. Events are stored as **CS Unsubscribe** (ID: 68).

***

## Viewing Analytics

1. Go to **Analytics** (or **Events**) in your SendPost dashboard
2. Filter by:
   * **Provider**: Select your Custom SMTP provider
   * **Event Type**: Filter by CS event types (58–68)
   * **Date Range**: Choose the time period
   * **Sub-account**: Filter by sub-account

Dashboard stats, domain reports, and mail reports aggregate Custom SMTP traffic the same way as other TPSPs. You can filter by TPSP type to compare Custom SMTP vs SendPost IPs or other providers.

***

## Rate Limiting & Throttling

### Default Rate Limit

Custom SMTP TPSPs have a **Max Rate Per Hour** (default 100) set at creation. This is the global rate limit for this provider. You can change it in the provider settings.

### Per-Provider Throttling

SendPost supports per-provider throttling across **27 ISP categories** (e.g., Gmail, Yahoo, Outlook). Custom SMTP uses the same provider-specific settings (stored in the same JSON columns as other TPSPs). You can set different hourly limits per provider (e.g., cap Gmail at 1,000/hour, others at 10,000/hour). Per-provider limits are configurable up to 100,000 messages per hour per provider.

### Configuring Rate Limits

<Steps>
  <Step title="Navigate to Providers">
    Go to **Settings** → **Providers** in your SendPost dashboard
  </Step>

  <Step title="Edit Custom SMTP Provider">
    Click your Custom SMTP provider to edit
  </Step>

  <Step title="Adjust Rate Limit">
    Update **Max Rate Per Hour** and any per-provider throttle settings
  </Step>

  <Step title="Save">
    Save; new limits take effect immediately
  </Step>
</Steps>

***

## Stats Synchronization

Custom SMTP events update the same Redis counters and PostgreSQL stat tables as other TPSPs:

* **tpspstat** – General TPSP stats per sub-account per provider
* **tpspdomainstat** – TPSP stats per domain per sub-account per provider
* **aggregatedtpspsmtpcodestat** – SMTP code aggregation for error analysis

Background jobs sync these to Postgres every minute. No extra configuration is needed.

***

## Next Steps

* [Event types](/guides/custom-smtp/event-types) for full list of CS events
* [Troubleshooting](/guides/custom-smtp/troubleshooting) analytics or rate limiting
