View counter shows 0 views for recently added posts

[ad_1]

It looks like the REST API is being blocked so the tracking script isn’t firing. There is an option in Perfmatters to disable the API, so I’m guessing that’s what the issue is.

If you want to block the REST API, I would recommend using this plugin instead:

It will allow you to whitelist the route the Independent Analytics uses, while blocking every other route.

Hi Ben,

Thanks a lot for thespeedy response. Turning off the rest API was not my intention but the developer whom we hired turned off I guess, thinking it can improve the performance. I unchecked the disable API option and saved the settings. Now the counter is working in action. Just wanted everyone to know that.

Great, glad to hear that worked 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer