• Resolved drksecret

    (@drksecret)


    I have been using the plugin for a while but if I compare the results to my analytics, it does not match up. Some of my most popular posts do not appear in the plugin list. I have looked at caching options in the documentation etc. What am I missing?

    • This topic was modified 2 years, 2 months ago by drksecret.

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

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

    (@hcabrera)

    Hi @drksecret,

    Please take a look at this thread, it might give you some pointers: Views count different than Jetpack’s?

    In short, make sure that:

    • There are no other scripts / tools interfering with WPP’s ability to track visits (see WordPress Popular Posts is not tracking visits, what’s going on?)
    • There are no JavaScript errors on your site as these may prevent the execution of some scripts under certain circumstances.
    • The analytics tools you’re using on your website (eg. Google Analytics) is properly set up.

    Note that all of the above still won’t guarantee that the data shown by your analytics tool will match what WPP reports -they’re two completely different tools after all as discussed on the link I shared above- but it should help close the gap between the two.

    Thread Starter drksecret

    (@drksecret)

    Thanks for the quick reply. I did look at all the things you recommend.
    I excluded js etc.
    It looks like all the older blog articles (from before I installed this plugin) are not being measured. They have the same template and there is nothing different about them though.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, I had a look at your website and found that the REST API is responding with a 401 Forbidden error message whenever I visit any of your articles. Something is certainly preventing WPP from tracking views on your website.

    REST API 401 HTTP response screenshot

    The error message states that “The WP REST API cannot be accessed by unauthorized users.”

    This usually means that you have some kind of security / firewall plugin installed on your website that’s blocking access to the REST API (as stated on the FAQ I linked above) so please double check that your plugins aren’t keeping WPP from accessing the REST API as that’s required for WPP to be able to track page views.

    • This reply was modified 2 years, 2 months ago by Hector Cabrera. Reason: Reworded for clarity
    • This reply was modified 2 years, 2 months ago by Hector Cabrera.
    Thread Starter drksecret

    (@drksecret)

    Ah great. Thank you for having a quick look. I have changed something in my security plugin. Will keep an eye on it.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Nice, seems to be working as intended now.

    REST API 201 HTTP response screenshot

    Marking this topic as resolved. If you have any other questions please let me know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not logging all views’ is closed to new replies.