Title: wp_popularpostsdata missing post ids
Last modified: September 24, 2018

---

# wp_popularpostsdata missing post ids

 *  Resolved [sofiafulgido](https://wordpress.org/support/users/sofiafulgido/)
 * (@sofiafulgido)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/)
 * Hi, I have some problems with the plugin.
    The post views count don’t work properly:
   it remains on 0 views.
 * I could update some posts with previous post views updating the table wp_popularpostsdata,
   but for some posts the id is missing… Why? Suggestions?

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718129)
 * Hi Sofia,
 * Have you read [this](https://github.com/cabrerahector/wordpress-popular-posts/wiki/5.-FAQ#how-does-the-plugin-count-views--calculate-the-popularity-of-posts)
   yet? If so and if you think that’s not the issue and that the plugin isn’t really
   tracking your visits correctly, then please share your site’s URL so I can have
   a look.
 *  Thread Starter [sofiafulgido](https://wordpress.org/support/users/sofiafulgido/)
 * (@sofiafulgido)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718168)
 * Thank you very much, now… I have read
 * point #1 #2 , yes, I’m sure from google analytics I had visits but not post views
   count from plugin. I add they manually from old post views count
 * point #3 yes the theme had wp_head()
 * point #4 How Can I “to allow WPP access to the REST API” from which plugin or
   setting?
 * point #5 From phpmyadmin I can modify tables… so I think I have the access
 * Moreover.. I have a plugin for Cache: WP Super Cache, I had delete the cache 
   but nothing…
 *  Thread Starter [sofiafulgido](https://wordpress.org/support/users/sofiafulgido/)
 * (@sofiafulgido)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718177)
 * Ah, this is my site. I have the problem with all my post. Where there is the 
   post views count, I added it from phpmyadmin.
 * [https://fitnessgeek.it](https://fitnessgeek.it)
 * I do not know if I’m doing something wrong
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718270)
 * From what you’ve said so far, there doesn’t seem to be a problem.
 * You see, the plugin can only display data from posts it started tracking since
   the moment you installed it. Views data from before that isn’t available, so 
   of course older posts that haven’t been visited by anyone yet won’t have any 
   views data stored in the database.
 * I did notice, however, that you have [Data Sampling](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#data-sampling)
   enabled on your site. How many visitors do you get per day in average?
 * > How Can I “to allow WPP access to the REST API” from which plugin or setting?
 * If you’re not using a security/firewall plugin then you’re likely OK and you 
   won’t need to do anything regarding this.
 *  Thread Starter [sofiafulgido](https://wordpress.org/support/users/sofiafulgido/)
 * (@sofiafulgido)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718336)
 * Yes, but from google analytics I see that I have 100-200 visitors on a single
   article for example, but post views of this post (like others) are stucks since
   days :/ there are only my post views added from me today, and 3-4 days ago
 * [https://www.fitnessgeek.it/wish-shopping-online-italia-affidabile/](https://www.fitnessgeek.it/wish-shopping-online-italia-affidabile/)
 * google analytics: 91 views only today on it. But the views are stucks
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718347)
 * > (…) but post views of this post (like others) are stucks since days :/
 * This does sound like an issue. How often does WP Super Cache regenerate its cache?
 * And please answer my previous question:
 * > How many visitors do you get per day in average?
 *  Thread Starter [sofiafulgido](https://wordpress.org/support/users/sofiafulgido/)
 * (@sofiafulgido)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718360)
 * > I did notice, however, that you have Data Sampling enabled on your site. How
   > many visitors do you get per day in average?
 * About 300 visitors
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718372)
 * Thanks Sofia.
 * If your site is getting around 300 visitors per day, then you don’t really need
   to use [Data Sampling](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#what-is-sample-rate-for).
   Once your traffic grows (eg. 150.000 visitors per day) then you’ll want to enable
   it.
 * For the time being, please:
    1. [disable Data Sampling](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#how-do-i-enable--disable-data-sampling),
       and
    2. clear [WP Super Cache’s cache](https://wpshout.com/quick-guides/delete-cache-wp-super-cache/)
       so changes take effect immediately.
 * This should have WPP start registering your views count more accurately from 
   now on.
 *  Thread Starter [sofiafulgido](https://wordpress.org/support/users/sofiafulgido/)
 * (@sofiafulgido)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718388)
 * Ok, really useful as an explanation!
 * Done.
 * This also explains why some post ids there aren’t in the table wp_popularpostsdata?
 *  Thread Starter [sofiafulgido](https://wordpress.org/support/users/sofiafulgido/)
 * (@sofiafulgido)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718396)
 * Oh well now it is work! 😀
 * Thank you very much. I remember this for the future, when the traffic will grow!
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718415)
 * Partially, yes.
 * When Data Sampling is active WPP only records a subset of the traffic. So, there
   might be instances where a page was visited and tracked by Google Analytics but
   WPP ignored that specific visit because Data Sampling was active. Here’s a slightly
   longer and more detailed explanation, in case you’re curious: [How does Data Sampling work?](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#how-does-data-sampling-work)
 * The other reason why a post doesn’t have any records on WPP’s database tables
   is [as I explained earlier](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718270).
 * Anyways, I’m glad to know things are back on track 🙂 If you have any other questions
   don’t hesitate to ask, ok?
 *  Thread Starter [sofiafulgido](https://wordpress.org/support/users/sofiafulgido/)
 * (@sofiafulgido)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718440)
 * Yes, thank yo very much, very useful ^_^

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘wp_popularpostsdata missing post ids’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [sampling](https://wordpress.org/support/topic-tag/sampling/)
 * [views](https://wordpress.org/support/topic-tag/views/)

 * 12 replies
 * 2 participants
 * Last reply from: [sofiafulgido](https://wordpress.org/support/users/sofiafulgido/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/wp_popularpostsdata-missing-post-ids/#post-10718440)
 * Status: resolved