9 ms·
Social share buttons that don't allow the social sites to track your users
- raimue 7y agoAs mentioned in the project description, this is a fork of the solution presented by the German magazine c't a few years ago. Since then they came up with the successor Shariff, which is also able to display the number of likes and shares. https://github.com/heiseonline/shariff https://github.com/heiseonline/shariff
- mpweiher 7y agoYou're right, I should have submitted that one!
- sschueller 7y agoshariff is cool but I have had issues with IE when packing it via webpack since version 1.25.2.
- asutekku 7y agoHonest question, but why do you need social buttons for IE?
- sschueller 7y agoSadly some customers still use IE.
- asutekku 7y agoTrue, but it’s still mostly used in corprate environments. Thus having share buttons in IE feels weird.
- pard68 7y agoMy company works with a lot of active duty US military personnel and when I was starting out in our Helpdesk almost all of our military customers used government issued computers to use our product. These guys and gals all used IE because that is what they had. I don't know if the government only allows IE or if they just don't have the privileges needed to install anything else but this is why we unofficially support IE still. We also had a lot of customers who didn't know that the internet existed outside of "the blue 'E'". With those ones I usually helped get Firefox installed.
- fheld 7y agoalso relevant https://github.com/heiseonline/embetty https://github.com/heiseonline/embetty embedding remote content like tweets or videos without compromising your privacy.
- shultays 7y agoI wonder if recaptcha trust will take a hit if you use these in your website
- thepangolino 7y agoRecaptcha had a good run but it’s time for it to die imho.
- akie 7y agoThat's nice & all, but there's no good replacement that works as well (for example against a dedicated attacker with a botnet).
- rubbingalcohol 7y agoThat doesn't mean it's worth using.
- newaccoutnas 7y agoAgreed, it's morphed into something a lot more evil than stopping bots. The amount of heuristics it now collects in v3 is quite something. Check for your score yourself https://recaptcha-demo.appspot.com/recaptcha-v3-request-scores.php https://recaptcha-demo.appspot.com/recaptcha-v3-request-scor...
- burkaman 7y ago> This is a sample implementation, the score returned here is not a reflection on your Google account or type of traffic. I got 0.9 and then 0.3 after refreshing.
- SquareWheel 7y agoThat's by design. Hitting the same endpoints multiple times is botty behaviour. I got 0.9 three times, then 0.7 on the fourth.
- anticristi 7y agoCan someone explain why there is a need for the "double-click" solution? Can't one simple have a row of fontawesome-based social media buttons with links to their respective share URLs?
- pintxo 7y agoIf you are interested in like etc counts, you need some components retrieving this information from the social network.
- OskarS 7y agoI feel like the solution to that is to fetch those numbers server-side and cache them, then present them statically to the user. No tracking, no JavaScript, no cookies, it just works.
- sergiomattei 7y agoWith the added inconvenience of having to write all the server side code, set the cron up, have a database or flat file system... The point of the other solution is to save all that.
- OskarS 7y agoCompared to the effort of... you know... building an entire website, this seems like a tiny bit of effort. Is it really that hard to add three lines of server code to serve some content statically? Are we seriously saying that ANYTHING even trivially complex HAVE TO happen on the front-end, even if it means tracking all our users? Come on. Surely there's like a plugin to Django or whatever that could do this. You're serving the dang article from some database with some server logic, after all.
- sergiomattei 7y agoThis is a common engineer's problem. You're missing the point. Convenience is a massive selling point. It's the same reason Dropbox is a thing rather than "hurr durr build your own FTP server, it's cheaper and more effective". Sure, it's cheaper. But count the 2 hours you have to spend debugging and making it work, then maintaining the server... Personally, I have other things to spend time on. Things like, you know, building a product, rather than maintaining a contraption that fetches social stats from the very convoluted social APIs. Ever tried to get your Instagram follower count via their API? Good luck doing that without access tokens or some hack.
- HugThem 7y agoHas anybody ever measured the impact of share buttons? Do users really share the page more often when those buttons are present? And if so, how much more often? To me it seems like this function is not something the page should provide buttons for. Just like it offers no buttons for saving, bookmarking, printing, resizing, scaling, scrolling etc. That is stuff you do with the page. Not something the page does.
- Spivak 7y agoYou're right! If current phones that had a persistent share prominently in the UI came first then this trend might not have happened. But it started with desktop browsers where this concept didn't really exist.
- lazyjones 7y ago> But it started with desktop browsers where this concept didn't really exist. Correct, mainly because "normal" users didn't know how to copy/paste URLs or didn't bother to, supposedly. If desktop browsers had gone in the right direction, they'd have added a "share:" scheme (similar to "mailto:").
- raimue 7y agoEven then the browser would still need to know to which websites the user could share. The user would first need to select websites and services they want to use. In the past, desktop browsers kind of tried to provide such features with the concept of the bookmarklet [1]. The idea was that users would drag&drop a link to their bookmark toolbar to add functionality to their browser. I think it is still used by some Read-It-Later style collection services, but mostly has been replaced with browser extensions. [1] https://en.wikipedia.org/wiki/Bookmarklet https://en.wikipedia.org/wiki/Bookmarklet
- lazyjones 7y ago> Even then the browser would still need to know to which websites the user could share. The user would first need to select websites and services they want to use. They managed multiple search engine options just fine and mobile browsers implemented sharing without issues. I don't see a pressing need for user configuration (websites with share buttons don't allow this either), it would have meant potential additional revenue also for Mozilla & Co. OTOH, they failed to fix "mailto:" for webmail ... AFAIR toolbars added sharing buttons early on.
- Fileformat 7y agoFighting JavaScript with more JavaScript seems like a losing proposition. You can just make all the links be static links. I did this will a server side redirect so I could still track clicks: https://simpleshare.io/ https://simpleshare.io/ This also has the advantage of working in places that don't allow embedding JavaScript, like Github README files.
- StavrosK 7y agoI posted this article I wrote a while ago on another HN posting: https://www.stavros.io/posts/scourge-web-analytics/ https://www.stavros.io/posts/scourge-web-analytics/ It uses plain links (no JS) for the social buttons, and writing that article was actually what urged me to remove social buttons from my site. Shariff is cool, but there's really no reason to use JS just for some social buttons, so what I ended up doing was just using its CSS and visuals and nothing else. This has been working very well, the buttons are fully functional (even with JS off!) and quick to load. I wish Shariff had a no-JS mode.
- sbhn 7y agoFork me on gitlab ribbons Fully GDPR compliant https://gitlab.com/seanwasere/fork-me-on-gitlab https://gitlab.com/seanwasere/fork-me-on-gitlab This got to pole position on HN, then some mod flagged it as spam, It’s spirit was relevant then, and it’s spirit is relevant now. Fully GDPR compliant.
- RodgerTheGreat 7y agoIf you've decided that the passive surveillance which social media companies perform on your page is an invasion of your users' privacy, wouldn't it be even more respectful of those users to avoid having share buttons at all? Why feed the beast after it bites you?
- stevesearer 7y agoWe made the decision to use non-JS share links for a couple reasons. One was to speed up the load time of the site, another was to limit social button tracking all users for the sake of the very small minority of users who use them. Our reason for keeping them was that people were sharing/saving anyway and this gave us a little more control vs something like the Pinterest browser plugin which users might use to save/share.
- jrochkind1 7y agoHm. I've been in the practice of figuring out plain old URLs to use as hrefs for social share. No JS. No loading of images or other content from the third party social network. This, when it is doable, of course provides no tracking (until/unless a user clicks the share button anyway) with no need for "two clicks" -- the remote site receives no network traffic at all unless you click the button, it's just an ordinary static link. I have generally been able to figure this out for major social network sites, either from documentation, third-party documentation, or watching HTTP requests made by the 'official' JS solution. I guess it's possible it violates the "ToS" of the remote site to do this, although I'm not sure ToS can really restrict my linking to the site with a URL. I guess this technique could be more subject to breakage, if the remote site changes it's URL patterns, and the "official" (JS/tracking) solution from the remote site is updated, but I'm not using that. So there are potential downsides -- but I'm curious which of them (or something I'm not thinking of) leads people to a more complex (and slightly worse UX) solution like this, instead of just using static URLs.
- sp332 7y agoSure, but those plain HTML links take the user away from your site. The JS ones don't navigate them away.
- discreditable 7y agotarget="_blank" rel="noopener noreferrer"
- futureastronaut 7y agoIf only there were a way to open a link in a new window or tab.
- jrochkind1 7y agoOh, is that why people dont' want the plain links, cause they want the 'modal' popup within their site for the share? OK, that could explain it. Obviously `target="_blank"` is an option, but not quite the same indeed.
- QuadrupleA 7y agoShameless plug, a similar project with a simpler-to-use design: https://github.com/QuadrupleA/private-secure-sharing-buttons https://github.com/QuadrupleA/private-secure-sharing-buttons It just needs a stylesheet and vanilla JS - so no dependency on jQuery and node.js, no build shell script required, and makes no external HTTP requests (uses simple SVG icons embedded in the JS).
- _bxg1 7y agoWhy do these need to be anything more than: <a href="https://www.facebook.com/.../share" target="_blank"> <img src="share_button.png"> </a> ?
- oliwarner 7y agoYup, this is what I always do. All the major platforms allow you to pass through titles and other data to pre-populate the share box.
- ignoramous 7y agoA similar trick employed by businesses in Asia is to use the WhatsApp click to chat URL [0]: https://wa.me?text=Hello,World https://wa.me?text=Hello,World [0] https://faq.whatsapp.com/en/android/26000030/ https://faq.whatsapp.com/en/android/26000030/
- stevesearer 7y agoOne slight difference however is that on Facebook you have to use the 'share' button versus using a 'like' button. In some ways I feel like a share is more meaningful than a like due to the extra step involved.
- Semiapies 7y agoBecause they really should be small forms doing POSTs. There's no reason to recreate the mistakes of the early Aughts.
- _bxg1 7y agoThe problem is then you need JavaScript. Unless you want to show all of the form fields, all the time, on every page. Edit: You could probably hack around this with some CSS, but only relatively recently and browser support could be a challenge.
- WindyCityBrew 7y ago
- briandear 7y agoThis is ironic. You want people to share your content on social media but you don’t want social media tracking which is the entire business model of the very social media you are supporting by encouraging sharing. Whatever happened to sharing by email? That’s like selling guns while complaining about bullets.
- suyash 7y ago2 reasons: 1. Social Media has become a necessary Evil if you are in the marketing of any kind. 2. I don’t care about the business model of social media sites as that is not my business, I am happy just to provide the options for readers to share if they care and I use a simple sharing (without tracking).
- neves 7y agoI need the marketing, but I also care for my users.
- parliament32 7y agoWhy do I need JS to link to a social site? Why would you ever need anything apart from and <img...> and a <a href...>? Dependencies jQuery jQuery cookies plugin (optional) uglifyjs (for build.sh) uglifycss (for build.sh) extend (for build.sh) I appreciate what the author is trying to do but shit like this is why the web is so bad now. Linking to another site isn't hard.