• Resolved jorgemc

    (@jorgemc)


    Good morning people ! I mention a problem I have had:

    I have the plugin configured in the same way in two sites and in one of them, in which I put, have deleted the data of visits, someone else has happened?

    Comment that I have LiteSpeed ??Cache with the plugin enabled, but until today I had not had any problems and nothing has been touched, it was from one day to the next that the data was lost.

    Greetings and thanks in advance.

    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)

    Hola @jorgemc,

    It doesn’t seem like WPP is tracking your posts & pages. It could be due to LiteSpeed ??Cache.

    Try this:

    1. Go to LiteSpeed Cache > Settings, set Default Public Cache TTL to 86400, then click on Save Changes. This is so WPP can update the views count of your posts & pages. This change won’t affect your site’s functionality at all so don’t worry about it.
    2. Go to LiteSpeed Cache > Settings > Tuning.
    3. Under JS Excludes, add wpp in a new line, then click on Save Changes.
    4. Finally, go to LiteSpeed Cache > Manage and click on Purge All to clear LiteSpeed Cache’s cache.

    With this, WPP should be able to track the views count of your posts & pages again.

    Thread Starter jorgemc

    (@jorgemc)

    OK, now configure the data.

    I do not use Shortcode, I use the following line of code in footer.php:

    <?php $args = array('range' => 'weekly','freshness' => 0,'stats_views' => 0, 'limit' => 10); wpp_get_mostpopular( $args );?>

    Attach link to image so you can see where it should be show:

    https://ibb.co/rx7QdLc

    I also attach image of the data I have collected so far, since I restore a backup copy with those Popular Post columns.

    https://ibb.co/WVybSP3

    Greetings and thanks for responding so soon!

    If you need any more information, tell me.

    Plugin Author Hector Cabrera

    (@hcabrera)

    (…) I use the following line of code in footer.php

    That won’t work because you’re using a caching plugin. Your “Lo Más Popular” list won’t update until the next time LiteSpeed Cache refreshes its cache. You need to use AJAX in there, so you either:

    • Change your theme’s code so the footer retrieves the HTML output from wpp_get_mostpopular() via AJAX; or
    • Remove that code and put a WPP widget there instead (and enable the Ajaxify widget option in Settings > WordPress Popular Posts > Tools to prevent LiteSpeed Cache from caching it).

    You may need to ask your developer to help you update your theme with these changes if you’re not really familiar with coding.

    Thread Starter jorgemc

    (@jorgemc)

    Good afternoon again, everything working right again.

    Thank so much for your help.

    Leave the Use Ajax option with the widget enabled.

    Image of everything correct:

    https://ibb.co/K72cMBH

    Plugin Author Hector Cabrera

    (@hcabrera)

    I’m pretty sure your popular list will stop working again in the near future, though. You’ll need to implement any of the two suggestions I posted above to prevent that from happening.

    For the time being I’m marking this topic as resolved. If you have any other questions, don’t hesitate to ask.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deleting visitor data’ is closed to new replies.