Troubleshooting & FAQ
Views Not Counting
Symptom: Views stay at 0 or don’t increase.
Solutions:
- Check your counting mode. If you use page caching, switch from PHP to JavaScript or REST API mode
- Check exclusions. If you’re logged in as admin with “Exclude all logged-in users” enabled, your visits won’t count
- Check the count interval. If set to 30 minutes, revisiting within that window won’t add a count
- Try incognito mode to rule out cookie/login-based exclusions
- Check for JavaScript errors (browser console) if using JS or REST mode
Counts Seem Wrong
Higher than expected: Check if bots are being properly excluded. Some aggressive crawlers may bypass user-agent filtering.
Lower than expected: Likely a caching issue — switch to JS or REST counting mode.
Different from Google Analytics: View Counter counts page loads, not sessions. One user loading a page 3 times = 3 views. GA may count this differently.
Cache Compatibility
View Counter WP is tested with:
- WP Super Cache, W3 Total Cache, WP Rocket
- LiteSpeed Cache, Cloudflare APO
- Redis/Memcached object caching
- Varnish, Nginx FastCGI cache
For all caching setups, use JavaScript or REST API counting mode.
PHP counting mode only works on uncached page loads. If a page is served from cache, PHP doesn’t execute, and the view won’t be counted.
Common Questions
Does it work with multisite? Yes — network activate or activate per site. Each site tracks independently.
Does it slow down my site? No. PHP mode adds one lightweight database write. JS/REST modes fire an async request after page load that doesn’t block rendering.
Is it GDPR compliant? Yes. No personal data is stored, no external requests are made, and the optional count-interval cookie contains no identifying information.
Can I reset view counts? Yes — edit any post, find the View Counter meta box, and set the count to 0. Or use the REST API: POST /posts/{id}/adjust with count=0.
Where is data stored? View counts in wp_postmeta (key: _vc_view_count). Daily aggregates in custom table wp_vc_daily_views.