• Hi, I use your plugin for several years, and there is one problem, that always existed for some reason. The plugin counts views incorrectly (significantly). The number of post’s views, that it shows, is usually close to the amount of daily visitors, but not real posts views.

    For example, if I have 1000 visitors per day, that made 2300 posts views, then your plugin will usually show around 900 views, which is significantly incorrect number.

    Yes, I know, that you have different methods of counting, but if I understand correctly, they are related to speed of counting. But I tested it many times, and in my case, I can stay on a page in incognito mode for a long time, and this view won’t be counted by your plugin. And sometimes it will. So the problem is not in the amount of time spent on the page. And my website loads pretty fast, because it’s optimised btw.

    Also, I tested a couple other options (Javascript etc), and the result is the same. Right now I use PHP method.

    Maybe the problem is in my code? I used this code, and put it in my theme’s content-single.php file, after <?php if ( $meta = shamrock_get_meta_data() ) : ?> :

    <div class="entry-meta">

    <?php

    $myviews77 = pvc_post_views( $post_id = 0, $echo = true );

    echo $meta, $myviews77;

    ?>

    </div>

    And then, I modified your plugin’s functions.php file, by replacing this: ‘<div class=”‘ . esc_attr( $class ) . ‘”> to this: ‘<div class=”meta-item”><i class=”fa fa-eye”></i>

    Please, help me solve the problem with incorrect views count.

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

  • You must be logged in to reply to this topic.