Mobile app version of vmapp.org
Login or Join
Rivera981

: My users don't want to be tracked by FB, Google etc. How can I then implement "share" buttons? I don't have any Ads and I am not using Google Analytics. I am using Piwick instead. But

@Rivera981

Posted in: #Adblock #Facebook #GooglePlus #ShareThis #Twitter

I don't have any Ads and I am not using Google Analytics. I am using Piwick instead.

But I still want to be able to share the content via share buttons on Twitter, Facebook, Google+ etc.

The problem is that a lot of my users Adblock, so my question is can I implement these share buttons via something that will bypass that?

Maybe some additional JavaScript that will activate the button only when user click on it?

Or the only solution is to have external links(linked images) that will look like buttons and they will after click connect to the social medium of choice?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Rivera981

1 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

You can do social media share buttons without using JavaScript that would allow the sites to track your users. All the sites support links for sharing content.

For this to work you need to be able to URL encode some information about your page to insert into links:


URL: example.com/mypage.html -> http%3A%2F%2example.com%2Fmypage.html
TITLE: My Page Title -> My%20Page%20Title
SITE: My Site -> My%20Site


Then insert those into the following share URLs and link on the page to:


Facebook: www.facebook.com/sharer.php?u=ENCODED_URL&t=ENCODED_TITLE Twitter: twitter.com/intent/tweet?source=ENCODED_SITE&text=ENCODED_TITLE&url=ENCODED_URL Google+: plus.google.com/share?url=ENCODED_URL Pinterest: pinterest.com/pin/create/button/?url=ENCODED_URL&media=ENCODED_IMAGE_URL‌​&description=ENCODED_TITLE LinkedIn: www.linkedin.com/shareArticle?mini=true&url=ENCODED_URL&title=ENCODED_TITLE&summary=&source=ENCODED_SITE Email: mailto:?subject=ENCODED_TITLE&body=ENCODED_URL

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme