1.
Click on the Admin tab, then the Preferences tab.

2.
Select Advanced Preferences from the sub-menu.

3.
Change the number in the field titled “Expire logs after”. This number determines how long Textpattern keeps a record of a particular referrer.

4.
Click the Save button.
5.
Textpattern will now keep a record of referrers for the number of days you specified.