Hey #WordPress friends, what's your favourite statistics plugin which is *not* JetPack.
-
Danny van Kootenreplied to Terence Eden last edited by
@Edent There is a REST API endpoint that can be queried to get the stats in JSON.
As for a noscript version of the dashboard itself; that's literally what I am working on right now. Everything but the chart will be rendered server side and only progressively enhanced if JS is available.
Super curious what you need it for though. With WP loading in megabytes of JS, I mostly feel this effort I'm making right now was wasted. Can you elaborate?
-
Terence Edenreplied to Danny van Kooten last edited by
@dvk ah, sorry, I meant a <noscript> way of recording a visit.
At the moment, it looks like it loads up the JS and pings the endpoint. If a visitor has JS disabled, is there a way to track them?
-
Danny van Kootenreplied to Terence Eden last edited by
@Edent Ahh sorry, yeah, that makes more sense.
You can load the endpoint through an <img> element as long as you ensure that the following query parameters are set:
- `p` containing the post or page ID
- `nv` whether this is a new visitor
- `up` whether this is an unique pageview from this visitor[1/2]
-
Danny van Kootenreplied to Danny van Kooten last edited by
Unless you're using the cookie option and are not serving HTML from cache, you'll probably want to set the latter two parameters to `0`.
Make sure to put the <img> inside <noscript> to prevent duplicate counts.
[2/2]
-
Terence Edenreplied to Danny van Kooten last edited by
@dvk You star, thanks!
I've managed to get my stats exported as a CSV, so will try loading them in.
Will write up a blog post soon. -
Terence Edenreplied to Terence Eden last edited by [email protected]
I've finally switched off #JetPack from my #WordPress blog.
Have replaced the stats with the excellent https://www.kokoanalytics.com/
I've lost the ability to auto-post to LinkedIn and Threads. A pity, but no great loss.
No more "related posts" - which is annoying.
The "subscribe" widget has gone. No idea if tomorrow's post will be emailed out.
Had to tidy up a few bits of CSS - but I don't think anything *major* has broken.
-
:wordpress: Jackreplied to Terence Eden last edited by
@Edent There are easy ways to rebuild related posts using a custom WP_Query and feeding in categories, tags, etc. alternatively, SearchWP (a premium plugin) does a good job of this.
-
Terence Edenreplied to :wordpress: Jack last edited by
@jackmcconnell
Ta. I'll check them out. -
Quentin Stafford-Fraserreplied to Terence Eden last edited by
@Edent In case useful, I've used https://yarpp.com for related posts, and XYZ SMAP for cross-posting, for a long time.
-
Terence Edenreplied to Quentin Stafford-Fraser last edited by
@quentinsf
Yarpp was on my shortlist. Good to know it is useful.