Skip to content

How to Clean Up Old Tracking Data

Old activity slows nothing down, because the tables are indexed. It still pays to keep only what you use, for privacy and for a lean database. Two tools do it: automatic retention, and Delete Logs for a range of days.

Open DevDiggers Plugins → Customer Tracking → Configuration → Privacy & Data and find Data Retention.

The Data Retention section

  • Keep Activities For (days): Activities and visitor sessions. Default 90.
  • Keep Carts For (days): Ordered, recovered and lost carts. Default 90.
  • Keep Email Log For (days): Default 180.

Click Save Changes. Older records are removed every hour from then on. 0 keeps them forever.

Carts still waiting for their reminders are never removed by age, whatever the setting.

Go to Reports → Activity Log.

Click Delete Logs next to Export CSV. A short form opens under the title.

Choose the first day in the first box and the last day in the second. Leave the second empty to delete a single day.

The Delete Logs form with a date range

Click Delete and confirm. The Activity Log reloads with a notice saying how many activities were deleted from those dates.

The notice after deleting a range of dates

  • Delete Logs removes activities only. Carts, customer profiles and the email log stay.
  • To remove a few rows, tick them in the list and choose Delete under Bulk actions.
  • Deleting is permanent. Run Export CSV first if you may need the rows later.
  • To remove one person’s data on request, use the WordPress privacy tools instead. See How to Handle Privacy Requests.