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.
Notice: The enhanced privacy and hashing mechanism described herein has been introduced in WP Statistics version 14.4.
Our methodology strikes a fine balance between ensuring user privacy and providing accurate analytics without using cookies, browser cache, or local storage. This approach aligns with strict privacy regulations like GDPR, which consider device-persistent identifiers as personal data.
WP Statistics counts unique visitors based on the data available in every HTTP request: the IP address and the User-Agent string. To protect visitor privacy, it does not store these data points in their raw form. Instead, it uses a hashing mechanism with a daily rotating salt, which makes the result very hard to trace back to a person.
Please note: This method is used when Hash IP Addresses is enabled (on by default) and always for anonymous tracking through a consent plugin. With hashing off, visitors are told apart by IP address only.
The unique identifier for counting visitors is generated using the following formula:
hash(daily_salt + ip_address + user_agent)
This formula integrates a daily-changing salt, the visitor’s IP address, and their User-Agent. The daily salt makes the hash value change every day, preventing the tracking of users across different days and enhancing privacy. The resulting hash is a random string of letters and numbers utilized to calculate the number of unique visitors for that day.
With the introduction of version 14.4, WP Statistics has further enhanced this mechanism. The new hashing method, detailed in our GitHub repository, introduces improvements that align with the latest privacy protection techniques.
While our approach provides robust privacy protection and accurate visitor counting, it does have limitations. For instance, WP Statistics cannot perform detailed retention analysis, such as distinguishing between new versus returning visitors, due to the lack of a persistent user identifier. This method counts a visitor who views the site multiple times in a day as a single unique visitor. Conversely, if the same visitor comes on different days, each visit is counted as a unique visitor.
We are committed to helping our users understand how WP Statistics is built to comply with various privacy regulations. While we provide this information to aid in compliance, we recommend consulting with legal professionals for advice tailored to your specific circumstances.
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.