benecaster_email_editor_engagement_retention_days
Filters how many days a send’s open and click records are kept after the send. The default is 730, two years; anything below 1 counts as 1. The daily purge runs on the cron hook benecaster_email_editor_engagement_purge.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$days |
int |
— | Days to keep |
Returns:
int
Example
add_filter( 'benecaster_email_editor_engagement_retention_days', function ( int $days ): int {
return 365;
} );
Notes
A shorter period shortens what the Analytics Dashboard can show. A show's records are also deleted with the show, and a listener's with their account. Walkthrough: Read a show's email opens and clicks.
Need this built rather than just documented? See our services →