Documentation Guides Removing User IDs from Your Database

Removing User IDs from Your Database

The “Remove User IDs” feature within WP Statistics is a critical function for website administrators who are looking to enhance user privacy and comply with regulations such as the General Data Protection Regulation (GDPR). This document provides a comprehensive guide on how to use this feature to remove user IDs from your WordPress database, ensuring the anonymity of user data.


Under privacy laws like GDPR, users have the right to remain anonymous and have their data handled with care. The removal of User IDs from your database is a proactive step towards upholding these principles. However, this process is irreversible, so it is important to follow these steps carefully.

Step 1: Disabling the Recording of User IDs

To align with GDPR and similar privacy regulations, you may choose to stop recording user IDs:

  1. Log in to your WordPress dashboard.
  2. Go to the WP Statistics plugin, then access Settings.
  3. Click on the Basic Tracking tab.
  4. Find and uncheck the “Record User Page Views” option to disable the recording of user IDs.

This action will prevent WP Statistics from collecting new user IDs in the future.

Step 2: Backing Up Your Database

Before removing existing User IDs, create a full backup of your database. This step is a safety measure to recover your data if required.

Step 3: Removing Existing User IDs

After securing your data with a backup and disabling the recording of new User IDs, you can proceed to delete the existing ones:

  1. In the WP Statistics dashboard, navigate to the Optimization settings.
  2. Click on the Data Cleanup tab.
  3. Find the “Remove User IDs” option.
  4. Carefully read the provided warning to ensure you understand the permanence of this action.
  5. Confirm your intention to proceed by clicking on “Delete User IDs Now”.

Upon confirmation, WP Statistics will permanently remove all User IDs from your database.


The removal of User IDs is an essential step in respecting user privacy and adhering to GDPR guidelines. By following this guide, you can confidently remove personal identifiers from your database, contributing to a more secure and private online environment for your users.

Remember, this action is irreversible and should be carried out with due consideration of its impact on your site’s statistics and user data handling practices.