RSS Amplifier

Max Böck · Feb 7, 2021

Webmention Analytics

0
Sign in to vote or save

Max Böck · Max Böck

I'm a fan of webmentions. I've written about how to use them before, and I'm quite happy with having them on my site.

However, it can get difficult to see what’s going on with them - especially if there’s a lot of “background noise”. Many sites just scrape content from well-known blogs and republish it for SEO juice. If that content includes a link to your site, it can lead to webmention spam.

Unlike on social media, you also don’t get notifications or reports about incoming webmentions. You’re just handed a bunch of raw data to use however you like. That’s part of the beauty of the Indieweb though: you can tailor it to whatever suits you best.

I recently started playing around with the data I get from webmention.io to see if it could be displayed in a more meaningful way. The result is a new side project I call:

✨✨✨ Webmention Analytics ✨✨✨
You can see it in action in this demo on my site.

barchart showing days of the month at the x-axis and different amounts of webmentions on the y-axis.
Breakdown of webmentions per day

I built this with Eleventy and Netlify, mainly because that’s my favorite tech stack to tinker with. But for analytics that don’t have to be real-time, static site generators are actually a really good fit.

Expensive computations like parsing and analyzing 8000+ data points like this can be run once a day through a periodic build hook. The reports it generates are then instantly available to the user, while still being up-to-date enough.

Features

Permalink to “Features”

  • group webmention data by month
  • overview of webmentions by type (like, reply, repost, mention, bookmark…) and day
  • show top source URLs sending webmentions to your site
  • show top target URLs on your site receiving webmentions
  • show top tweets generating webmentions through brid.gy
  • check incoming webmentions against a blocklist of known “content scrapers” and spam domains
  • automatic daily updates with cron job
table showing most common sources and targets for webmentions
Top sources and targets
Webmentions flagged as spam

Get your own instance!

Permalink to “Get your own instance!”

If you also use webmention.io to show webmentions on your site, you can fork the code on Github and make your own instance of webmention-analytics. Just follow the instructions in the README to get started.

Keep in mind that this is still a very early version of a weekend side project, so there's probably a few things to iron out. Cheers!

  1. This is amazing, Max! 🤗

  2. Awesome! Love it. One suggestion: looks like you’re already using u-url for the individual webmentions. You might want to consider aggregating by u-url domain in “Top Sources” too, instead of by webmention source domain. That would replace brid-gy.appspot.com with the actual social network domains, eg twitter.com or instagram.com.

  3. Daaaayummn

  4. There's an xzibit joke in there somewhere.

Show All Webmentions (21)
  1. Thanks! Still a bit unpolished, but I think it could be something.

  2. Yo dawg I heard you like webmentions

  3. Nice! I really need to get started with web mentions on my site. I read your post a while back but haven’t started yet.

  4. This looks great. I really need to look at adding webmentions to my site.

  5. This is so cool! 🤩 Nice work 🙌🏼

  6. Pure genius.

  7. Very cool! Definitely will be trying this out once I get working on my site.

  8. This is awesome. Looking forward to deploying this when I get Webmentions setup!

  9. Awesome work

  10. Oh cool I haven't tried that. Glad my post was helpful!

Read the original on mxb.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.