Troubleshooting & How-Tos 📡 🔍 Web Development

Alternate Sharing Buttons (Now with Less Tracking!)

I’ve been trying out some alternate sharing buttons that don’t talk to Facebook, Twitter, etc. — or to a third-party button provider like ShareThis — until you actually click on the button. Facebook can track you across the internet when sites include the standard “Like” button hosted on their services. Same with Google and the +1. Even WordPress’ Jetpack buttons will call out to Facebook and Pinterest to display the share count. I want to reduce my contribution to ubiquitous tracking.

Sharingbuttons.io is totally self-contained and doesn’t even use any JavaScript. You use their site to generate a set of buttons for a particular page, then copy the HTML and CSS to your site. Downsides: The HTML includes embedded SVG that has to be repeated on every page, and your page title and URL are repeated in each button within the page. I used this set on the old Alternative Browser Alliance site, replacing ShareThis. It’s only around five pages, so it was faster to repeat the generator five times than write a tool to template it.

Share42 uses locally-hosted JavaScript to avoid repeating the title and URL on every button, and a single image sprite generated from the set of buttons that you choose. You copy both files to your own site, so that it doesn’t contact a third-party server just by appearing. This also made it simpler to add to WordPress, because I only need to add an easily-templateable stub and enqueue a local script. So I put it on Speed Force, replacing Jetpack’s sharing module. I may put it on the old Flash reference site (which used to have ShareThis on it) if it seems like it’s worth it.

These are both topic-based projects. For my personal blog, I decided to just drop the share buttons entirely. I’m not sure how useful they are these days, anyway, especially on mobile, where sharing to an app is built into the system.

2025 update: I’ve been using Share Openly here, which focuses on open platforms like Bluesky and Mastodon. It does use a third-party site as a middleman, but it doesn’t load anything from off of your own site until the visitor actually follows the share link.