Optimization: Plugin Maintenance

This document explains each tool on the Plugin Maintenance page, with use cases. Open it from Statistics → Optimization → Plugin Maintenance.

Plugin Maintenance tab with GeoLocation Settings, Referrals Settings, IP Address Management, Database Schema and Data Migrations

GeoLocation Settings

Update Country Data

This function is crucial for websites that rely on geographical data to provide relevant content or services to their visitors. Click Refresh Country Data to run it. By refreshing country data, the plugin updates and corrects any unidentified or missing country data in the database.

Use Case: If your website displays different content based on the visitor’s country or if you use geographic data for analytics, ensuring that country data is up to date is vital. For example, an e-commerce site might use this data to display the correct currency or provide location-specific offers.

Referrals Settings

Update Source Channel Data

Click Update Source Channel to fill in the source channel (for example Organic Search, Organic Social or AI Assistants) for visits that do not have one yet. It can take a while on a large database.

Use Case: Run it after an update if older visits show up without a channel in the Referrals reports. The result depends on the data you kept: only allowed query parameters are stored, so some older visits may still not get a channel.

IP Address Management

Convert IP Addresses to Hash

This feature transforms all stored IP addresses into hashed values. Hashing IP addresses is a method of encrypting the data to enhance user privacy while still allowing the system to generate accurate, location-based insights.

Use Case: A website that values user privacy and wants to comply with data protection regulations like GDPR would use this function. Hashing IP addresses anonymize the user data, ensuring privacy without losing the ability to analyze traffic patterns.

Recommended Use: Given that the hashing process is irreversible and original IP addresses cannot be retrieved, it should be implemented with caution. Also, as the process is resource-intensive, it is recommended to perform this operation during off-peak hours to minimize the impact on your website’s performance.

Related guide: Converting IP Addresses to Hash

Database Schema

Check & Repair Database Schema

This checks that every WP Statistics database table and column exists and can be read. If everything is fine, you see “Database schema is healthy” and a Re-check Schema button. If something is wrong, a Detected Schema Issues box lists each problem (missing table, missing column, or a damaged table) and you can click Repair Schema Issues to fix it.

Use Case: After an update, a report is empty or you see database errors that mention a WP Statistics table. Run the check, then repair. If a table cannot be read at all, ask your host to check that table.

Data Migrations

This box lists the data migrations you can run again by hand. Each one runs in the background, and you can leave the page while it works.

Related guide: Database Migration Process Guide

Notes to the Administrator

Let’s get started
Take your business to next level

Become part of our growing family of 500,000+ websites and get the tools you need to make smart choices for your website. Simple, powerful insights are just a click away.