Support » Plugin: WordPress Popular Posts » Page Views

  • Resolved alex856

    (@alex856)


    Hello Héctor,

    If I compare your page views in the plugin with the statistics plugin WP Statistics, then the page views of your plugin are three times more. Why? If I embed other posts in a posting (excerpts), does your plugin count them too? Or does your plugin only count this when the entire post is loaded? Thank you for your help.

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

    (@hcabrera)

    Hi @alex856,

    WordPress Popular Posts updates the views count of a post/page when someone visits said post/page.

    If I embed other posts in a posting (excerpts), does your plugin count them too?

    Since you didn’t describe how exactly you “embed other posts” I’m going to answer with a “no, most likely no” unless you somehow added some code that triggers WPP’s views tracking script for these posts as well.

    Does that answer your question?

    Also worth reading:

    Thread Starter alex856

    (@alex856)

    Hello Héctor,

    I paste the link from another post into a post and then i see an embedded excerp. I’m trying to understand why your page views are three times more. It would be fantastic if that were the case. Can there be problems with WordPress cache plugins?

    • This reply was modified 2 years, 10 months ago by alex856.
    Plugin Author Hector Cabrera

    (@hcabrera)

    I paste the link from another post into a post and then i see an embedded excerp.

    Are you using a plugin for this? I don’t recall having seen this functionality before. Or maybe you’re using the Gutenberg editor and it does that out of the box?

    Can there be problems with WordPress cache plugins?

    Normally not, unless:

    • The configuration you’re using with your caching plugin conflicts with other plugins;
    • The plugins you’re using are not compatible with caching plugins (as in they don’t have measures in place to guarantee they can do what they’re meant to do even if a caching plugin is installed.)
    Thread Starter alex856

    (@alex856)

    No, I don’t use a plugin for embedding, that is a WordPress function and then looks like this after embedding:

    https://www.perun.net/wp-content/uploads/2016/06/beitrag-einbetten-frontend.png

    No, I don’t use Gutenberg. I can only explain it to myself that these embedded posts are also counted by your plugin.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yes, you are using Gutenberg 😛 (That’s the new Block editor, aka. Gutenberg.)

    I don’t think Gutenberg blocks would trigger a pageview so I’d rule that out as the cause of the views statistics differences (but I’ll test myself as soon as I get some spare time just to be 100% sure.)

    Thread Starter alex856

    (@alex856)

    Many thanks. Please let me know as soon as you know more. Thank you.

    Plugin Author Hector Cabrera

    (@hcabrera)

    So I set up a new WordPress site, tried pasting an URL into the Block editor and as you said WordPress automatically creates a post embed (which is very neat, btw):

    Block Editor with an embedded post

    I visited the Hello World post:

    The Hello World post with the embedded post

    … and then I checked WPP’s stats screen:

    The Hello World post with the embedded post

    So in conclusion, no, inserting multiple post embeds into a post/page won’t increase said embedded posts’ views count. WordPress Popular Posts will increase the views count only for the current post/page.

    Thread Starter alex856

    (@alex856)

    Thank you, very much.

    Plugin Author Hector Cabrera

    (@hcabrera)

    One thing that could explain why WPP’s views data is higher (mentioned in one of the links I shared earlier, btw) would be Data Sampling. Is it enabled on your website?

    Thread Starter alex856

    (@alex856)

    No, it’s disabled.

    Plugin Author Hector Cabrera

    (@hcabrera)

    I’m out of ideas then 😛

    Most likely this isn’t a WPP problem. You’ll need to do some more debugging to try and figure out what’s causing the stats differences.

    Let me know if there’s anything else I can do to help, alright?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Page Views’ is closed to new replies.