Read the blog analytics
v0.0.3
The Analytics screen shows how readers read your posts: which posts, categories, tags, bloggers and teams they open, when, and what they say. One view is a reader opening a post, counted when the page is shown in a browser. This guide opens the screen, narrows and compares it, and explains each part and how its views are counted.
Before you begin
- Set up the blog on your site.
- Sign in with an account that holds
admin:dashboard:blog:post, or a wildcard that covers it. - The comment figures need
admin:dashboard:blog:commentas well. Without it the Engagement tile, the comments charts, the Comments card, the Commenters tab and the comment columns are not read or drawn.
Open the screen and choose a period
- In the admin sidebar, under Plugins, click Blog, then click Analytics in the header or the Analytics card. The address is
/admin/dashboard/blog/analytics. - Choose 7 days, 30 days or 90 days. The default is 30. The period is whole days ending today.
The screen draws first, with each card as a skeleton. Each panel then reads its own data and appears when it arrives.
Narrow the figures
- Pick a Category, a Tag, a Blogger or a Team in the filter bar. Each is a search select that reads its options 20 at a time as you open it, search it and scroll. A name that repeats names its language and site, and an archived one is not offered.
- Click Clear above a filter to remove it.
A filter narrows every figure to the posts of that category, tag, blogger or team. An extension can add filters on the blog:analytics:filters event.
Compare with the period before
Tick Compare with previous period. The screen then draws the same number of days before this period beside it, as a dashed line on the charts. The period, the filters, the comparison and the sort of the post table are kept in the address, so a reload or a shared link opens the same view.
What each part shows
| Part | What it shows |
|---|---|
| Tiles | Total Views of all time, Views in Period, Unique Readers, Views Today and Engagement. Unique Readers says it is approximate when the site runs on several servers. Engagement is the share of views that have a comment, never above 100%. Its note says New when the period before had none and No data when neither had any. |
| Views Over Time | Three tabs. Total draws one point a day. By category stacks the five categories read most and the rest as Other. Publishing shows the posts published each week under the week's views. |
| Top | Tabs for Bloggers (views, posts published and comments received), Categories, Tags, Teams and Commenters, five each. A post written by two members of one team counts once for that team. An archived record is named and marked (archived). |
| Post Age | Views of posts published in the last 30 days against views of older posts. |
| Day of Week | Views by weekday over the period. |
| Comments Over Time | Comments written each day. |
| Comments | The period's comments by status: Awaiting moderation, Approved, Flagged and Spam. Each count links to the Comments list filtered to that status and period. |
| Top Performing Posts | The ten most-read posts, with views, readers, comments, engagement and the change against the period before. Click a column header to sort. |
| Rising Posts | The five posts that grew most against the period before. |
| Quiet Posts | Five published posts that got fewer than three views in the period. |
There is no read time, bounce rate, referrer or audience figure, because nothing records them. The Blog dashboard's Today's Views, Engagement and the monthly figures come from the same daily counts.
How views are counted
- A view counts when a post's page is shown to a connected reader's browser, once for each post on one page load. A crawler that runs no JavaScript never counts.
- A user agent that names a bot, a crawler, a script or a headless browser does not count. The site's
/livesocket must list:user_agentin itsconnect_infofor the blog to see it. A plugin onblog:post:count_viewmay change the decision. - A reader is counted once a day for a post, by a salted hash of their account or session. No IP address is read. Where the site runs on several servers, each tells its readers apart on its own, so Unique Readers is approximate.
- Each server counts in memory and writes what it counted with one bulk write, as one row for each site, post and day. A view figure can run up to a minute behind. A plugin on
blog:post:viewedis handed each batch. - Each night, the daily rows older than Keep daily views for (days) are deleted. The setting is under Settings, Blog, Views, and takes 1 to 3650 days. The default is 730.
The buffer is set in the host's config. When the buffer holds that many keys, a further hit is dropped, never queued.
config :mishka_blog, MishkaBlog.Views, flush_every: :timer.seconds(60), max_keys: 100_000Next steps
- Blog admin screens: the dashboard and its figures.
- Blog plugin events: the events that build this screen.
- Moderate comments.