• Resolved kspr

    (@kspr)


    I’m working on a new site and want to use this nice plugin, but it does not register any views.

    I also have WP Statistics installed, which does register views..

    What could it be?

    Debug – plugin configuration:

    Performance Nag: Inactive

    Log Limit: No

    Log Views From: Everyone

    Data Caching: Yes, 1 minute

    Data Sampling: Yes, with a rate of 100

    External object cache: No

    WPP_CACHE_VIEWS: No

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @kspr,

    If this is a new site being developed right now then you don’t need to have Data Sampling enabled (yet):

    <script id="wpp-js" src="https://danskpoker.dk/wp-content/plugins/wordpress-popular-posts/assets/js/wpp.min.js?ver=7.2.0" data-sampling="1" data-sampling-rate="100" data-api-url="https://danskpoker.dk/wp-json/wordpress-popular-posts" data-post-id="15" data-token="ac83812480" data-lang="0" data-debug="0"></script>

    Also, it seems that you’re using a caching plugin as well. Have a look at this FAQ to make sure that WPP can work with it: Is WordPress Popular Posts compatible with caching plugins?

    Thread Starter kspr

    (@kspr)

    I have disabled it now..

    I don’t think I’m using another caching plug-in on this site?

    Thanks!

    Plugin Author Hector Cabrera

    (@hcabrera)

    I still see Data Sampling as enabled on this site though so either you haven’t actually disabled it yet or I’m seeing a cached page.

    <script id="wpp-js" src="..." data-sampling="1" data-sampling-rate="100" ...></script>

    Also, your homepage consists of only an image at the moment. I can’t really test whether WPP is tracking visits since there are no actual links to internal pages.

    Thread Starter kspr

    (@kspr)

    I am sure I disabled it, but I have done it again now.

    https://postimg.cc/jD3FRpNd

    The site has not opened yet, but I have disabled the “maintenance mode”, hopefully you can get in now.. and thanks for the support!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, I can see that it’s been disabled now and I can see the actual homepage as well.

    Just checked one of your posts and WPP tracked my visit just fine.

    An HTTP 201 response as seen on the screenshot above indicates that WPP was able to save my visit to the DB.

    Thread Starter kspr

    (@kspr)

    It’s working now, yes!

    https://postimg.cc/fk0tCm5H

    At first I thought it was the maintenance mode in Elementor that caused it, but I tried disabling it before and visiting from different devices, without it working. Strange that it works now, but cool.

    Thank you very much for your support, I really appreciate it, have a wonderful day 🙂

    Plugin Author Hector Cabrera

    (@hcabrera)

    It was probably due to Data Sampling being enabled. Since this site doesn’t have traffic yet (or does it?) it’s going to be difficult to get WPP to track your visits with Data Sampling enabled and a Sample Rate of 100.

    If you plan on using Data Sampling make sure to use the right sample rate for your current traffic levels so the feature works as expected.

    (And you’re welcome, have a wonderful day as well!)

    • This reply was modified 1 year, 4 months ago by Hector Cabrera. Reason: Fixed typo
    Thread Starter kspr

    (@kspr)

    I am literally 100% sure that i disabled it. I’ve done it multiple times over the last few days, but then it was suddenly enabled again. Could perhaps be something with the cache, I just found out that GoDaddy have their own top-level cache sort of, which I also needed to flush to get the maintenance page back.

    Sure, thanks!!

    Plugin Author Hector Cabrera

    (@hcabrera)

    I am literally 100% sure that i disabled it. I’ve done it multiple times over the last few days, but then it was suddenly enabled again.

    Maybe GoDaddy is enabling it automatically then. The plugin has an undocumented filter hook called wpp_data_sampling that can be used to dynamically enable/disable the feature. I know that some hosting providers use it to force enable Data Sampling for performance reasons so maybe that’s why.

    You can work around it by either hooking into wpp_data_sampling to force disable Data Sampling, or just set your Sample Rate to 1 which effectively means that WPP will track all visits just as if Data Sampling was disabled.

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

The topic ‘No views registered’ is closed to new replies.