Data Storage and Retention
Where Data Is Stored
All analytics data is stored in the standard WordPress options table (wp_options). The plugin does not create any custom database tables. The two main options are:
sfrda_listing_analytics — contains view data for all tracked listings
sfrda_category_analytics — contains view data for all tracked categories
Storage Footprint
The plugin uses approximately 1KB per 100 views tracked. Even high-traffic directory sites will see negligible database growth.
Daily Cleanup
A WordPress cron job (sfrda_daily_cleanup) runs once per day and removes daily view records older than your configured retention period. The “All Time” total for each listing and category is always preserved.
Changing the Retention Period
You can adjust the retention period at any time in Directory Analytics > Settings. If you reduce the number of days, older data will be removed at the next daily cleanup. If you increase it, the plugin will simply retain more days going forward (it cannot recover data that has already been removed).