Take your business to next level
Become part of our growing family of +600,000 users and get the tools you need to make smart choices for your website. Simple, powerful insights are just a click away.
If you are experiencing issues with the tracker in WP Statistics, follow these steps to troubleshoot and resolve common problems.
Success:
{"status":true}
Failed (Request is in Exclusion):
{"status":false,"data":"user role"}
Check the data
field in the response for the reason of the exclusion.
Failed (Invalid Signature):
{"code":"rest_forbidden","message":"Invalid signature","data":{"status":403}}
or {"status":false,"data":"Invalid signature"}
Make sure the IP Detection Method in Settings → Advanced Options is configured properly, you can refer to the IP Detection Settings documentation for more information.
Make sure that wp-json
is not restricted by any security plugin or server settings. If restricted, whitelist the endpoint wp-json/wp-statistics/v2
in the plugin settings.
Ad blockers may block the plugin’s REST API endpoint wp-json/wp-statistics/v2/hit
. Enable the Bypass Ad Blockers option in the General setting page to bypass this restriction. This can also resolve the issue mentioned in step 2.
Examine the PHP error log on your server for any errors related to WP Statistics. This can provide insights into what might be causing the tracking issues.
Ensure that the Tracking Method in WP Statistics → Settings → General is set to Client-Side Tracking. This is recommended for better accuracy and future compatibility.
Clear your website’s cache, including any cache from cache plugins, server cache, or CDN cache, to ensure that the latest settings are applied. You can also exclude the /wp-content/plugins/wp-statistics/assets/js/tracker.js
in your cache plugin’s exclude option.
Deactivate other plugins one by one to check if there are any conflicts with WP Statistics. Sometimes, other plugins may interfere with the tracker.
Ensure that you are using the latest version of WP Statistics. Updates often contain bug fixes and improvements that can resolve tracking issues.
Use the browser console to check for any JavaScript errors that might be interfering with the tracking script. Address any errors that you find.
By following these steps, you can resolve common issues with the tracker in WP Statistics and ensure accurate data collection and display.
Become part of our growing family of +600,000 users and get the tools you need to make smart choices for your website. Simple, powerful insights are just a click away.