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:
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.
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.)
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.
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.)
Many thanks. Please let me know as soon as you know more. Thank you.
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):

I visited the Hello World post:

… and then I checked WPP’s stats screen:

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.
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?
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?