- Home
- Knowledge Base
- How To's
- How to remove IP address from click tracking
How to remove IP address from click tracking
If you want to continue tracking clicks, but don't want to track the IP address you can add the following code snippet by using a plugin like WP Code or, if you are using a child theme, by adding it to the functions.php file.
Note: Removing IP tracking will reduce the ability of Pretty Links to track unique visitors. So the click tracking will be a basic total count of clicks.
Code Snippet:
add_filter('pl_get_current_client_ip', function() { return ''; });
To Remove Existing IP Data:
If you also need to remove any existing IP address data you have two options. The first is to trim your click data to remove all click data.
But if you need to keep your existing tracking data and just remove the IP addresses you can run the following SQL query on your database. We recommend creating a backup before running any SQL queries on your database.
update wp_prli_clicks set ip = ''