• Resolved adesane

    (@adesane)


    Hi, it used to work fine then I don’t know why it only tracks visit for me when logged in
    my config

    Plugin Configuration

    Performance Nag:?Inactive
    Log Limit:?No
    Log Views From:?Everyone
    Data Caching:?No
    Data Sampling:?No
    External object cache:?No
    WPP_CACHE_VIEWS:?No


    • This topic was modified 1 month, 2 weeks ago by adesane.
    • This topic was modified 1 month, 2 weeks ago by adesane.

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

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

    (@hcabrera)

    Hi @adesane,

    It seems that there’s a conflict with one of your other plugins. WPP’s script has been altered on your site (I guess that by some kind of site optimization plugin), this is what I’m seeing now:

    <link rel="preload" as="script" >

    And this is what it should look like instead:

    <script type="text/javascript" id="wpp-js" src="https://adesane.com/wp-content/plugins/wordpress-popular-posts/assets/js/wpp.js?ver=7.1.0" data-sampling="0" data-sampling-rate="100" data-api-url="https://staging.cabrerahector.com/wp-json/wordpress-popular-posts" data-post-id="0" data-token="f6b19dcc15" data-lang="0" data-debug="1"></script>

    That’s why the plugin isn’t currently tracking views by visitors.

    You’ll need to exclude WPP’s script from whatever you’re using to “optimize” your site, see Is WordPress Popular Posts compatible with plugins that minify/bundle JavaScript code? for more details.

    If you have any further questions please let me know.

    Thread Starter adesane

    (@adesane)

    thanks I just saw I was blocking REST API requests for non logged users, I had to turn it back on then and it works

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.