How to clear anonymous contacts after 180 days instead of 365 days?

Your software
My Mautic version is: 4.4.4
My PHP version is: 7.4.3
My Database type and version is: MySQL 8.0.33

Your problem
My problem is: I would like to reduce the number of records in the users database. To do this, I would like to reduce the period after which anonymous contacts are being removed from the database from 365 days to 180 days. How/where can I configure this?

If it needs to be done via a config file for which FTP access is required, can you then tell me the file name and location and the parameter that needs to be adjusted? That way I can instruct the folks hosting the Mautic installation on what to do.

These errors are showing in the log: n/a

Steps I have tried to fix the problem: searched the forum

You could actually just do this via segments and campaigns.

  1. Create a segment with the filters email is empty and Visited URL Date less than -180 days.
  2. Create a campaign starting with this segment, then add an Action to delete these contacts.
3 Likes

Briljant simple solution, thanks!

Does that “-180 days” work or does it need to be an actually set date?

It would be awesome if those 180 days limit could be dynamic.

1 Like

No it is a dynamic parameter. So you could set it to the folllowing dynamic parmaters:
is today
is yesterday
-1 day
+1 day
-7 weeks
or really whatever

1 Like

Great stuff, got it working :+1:

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.