Mobile app version of vmapp.org
Login or Join
Pierce454

: Yes, you can. I already have implemented this on my blog with a combination of http://bitly.com/ and http://www.addthis.com/ and it's pretty much easier and you don't need create a bunch of

@Pierce454

Yes, you can. I already have implemented this on my blog with a combination of bitly.com/ and www.addthis.com/ and it's pretty much easier and you don't need create a bunch of line of code.

First, create and account on bitly.com and addthis.com.

Login in your AddThis account and connect it to your bitly account. Follow this instructions for this process: support.addthis.com/customer/portal/articles/381247-url-shortening#shortening-bitly.
Then add the AddThis code on you site. Mine looks like:

<script type="text/javascript">
var addthis_share = {
url_transforms : {
shorten: {
twitter: 'bitly'
}
},
templates : {
twitter : "{{title}} {{url}} via @YOUR -TWITTER-NAME"
}
};
</script>


And the code for the social buttons:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_counter_style">
<a class="addthis_button_google_plusone" g:plusone:size="tall"></a>
<a class="addthis_button_tweet" tw:count="vertical"></a>
<a class="addthis_button_facebook_like" fb:like:layout="box_count"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=YOUR-ID"></script>
<!-- AddThis Button END -->


When I discovered this option I wasn't really positive with it, but now I like it, because I have the stats of clicks on bitly and share metrics on AddThis. And the most important It didn't took much time to integrate the whole feature.

Also this option is better if you are going to use a custom domain like I did. Because bitly provides you the feature to custom your personal link with your domain, so you don't need to develop or use another software, it's all on bitly.

Example:
My custom URL shorten domain: pedroventura.es/1aN9V0b. This URL goes to www.pedroventura.com/php/problemas-codificacion-web-configurar-codificacion-utf8-php-mysql-y-html/. And if you click on Tweet button It will show the URL shorten but it counts the regular URL.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme