• Resolved supertrooper2

    (@supertrooper2)


    For some reason WPP has stopped counting page views. Settings are as follows:

    Performance Nag: Inactive
    Log Limit: No
    Log Views From: Everyone
    Data Caching: Yes, 1 month
    Data Sampling: No
    External object cache: No
    WPP_CACHE_VIEWS: No

    What settings should I use?

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

    (@hcabrera)

    Hi @supertrooper2,

    Hard to say without more details. If you’re using a plugin that minifies JavaScript code then please check this FAQ, otherwise share your site’s URL and I’ll have a look.

    Thread Starter supertrooper2

    (@supertrooper2)

    Hi Hector

    After reading the FAQ I have added the following to the exception lists of our caching plugin WP Optimize:

    /wordpress-popular-posts/assets/js/

    Unfortunately this doesn’t seem to have resolved the issue. The WPP views counting can be seen in the sidebar of our website under the title “Trending”:

    https://focusingonwildlife.com/news/

    Please advise how to get the WPP views counting to work again. It worked perfectly before uprading to WPP version 5.2.0.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yep, just tested it and aside from having WP Optimize exclude WPP’s scripts from its minification process you’ll also need to disable the Process HTML option under Minify as it messes up WPP’s inline JSON script (for which I may have a workaround but for the time being please leave that option disabled.)

    Thread Starter supertrooper2

    (@supertrooper2)

    I have followed your instructions but the stats are still not increasing.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Just checked one of your articles via Incognito Mode and WPP was able to track my visit normally though:

    WPP REST API call 201 Created Response

    Make sure to “hard-refresh” your browser at least once when visiting your website (ctrl+F5 on Windows, cmd+F5 on MacOS) so it updates its cache.

    Thread Starter supertrooper2

    (@supertrooper2)

    The stats in the tables popularpostssummary and popularpostsdata in phpMyAdmin are definitely increasing but the “Trending” stats in the sidebar are not changing.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ah, that’s because:

    1. You configured WordPress Popular Posts to cache your popular posts data for one month: Data Caching: Yes, 1 month. This means that the popular posts list on your sidebar won’t be updated for one month. If you want the popular posts list on your sidebar to be updated more frequently either lower the data cache lifetime (have it refresh every 5 minutes or every hour for example) or disable the feature completely (Settings > WordPress Popular Posts > Tools, under Data.)
    2. Also, since you’re using a caching plugin and the WPP widget, make sure the Ajaxify widget option (Settings > WordPress Popular Posts > Tools, under Data) is set to Enabled (and if it was disabled, enabled it, save changes, then clear WP Optimize’s cache for changes to take effect.)
    • This reply was modified 4 years, 4 months ago by Hector Cabrera. Reason: Improved wording for clarity, fixed a couple of typos
    Thread Starter supertrooper2

    (@supertrooper2)

    Héctor

    I followed your instructions and now it is working perfectly.

    Thanks for the great support.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WPP stopped counting views?’ is closed to new replies.