The Web Executive

Development

How to Use The Google Plus Share Button

April 29, 2012 by Aidan Bradley in Development with 16 Comments

Google has been very busy this week with their Drive offering, however something that flew in under the radar is their new Google Plus Share Button.

Previously we have had the ability to +1 a page or post, but now site owners can allow visitors to share the posts with their friends and contacts.

The core difference between the +1 and the share then? The Google +1 is more of an endorsement of the material, however it doesn’t actually share it onto your stream. The Google Plus Share function will prompt the users which of their circles they want to share with, then include it in their stream.

So, on to the fun part. Implementation.

Here is an example of the simple button:

Simple Button

This is a general 20px button used to share content. Much like the +1 buttons, these will change colour once used.

<script src="https://apis.google.com/js/plusone.js"></script><g:plus action="share"></g:plus>

Share Tag

Here is the standard share code

<g:plus action="share" ...></g:plus>

HTML5 Div version

<div class="g-plus" data-action="share" ... ></div>

Asynchronous JavaScript Loading

Asynchronous inclusion allows your web page to continue loading while your browser fetches the share JavaScript. By loading these elements in parallel, you’re ensuring the HTTP request that gets the share button JavaScript doesn’t increase your page load time

<script type="text/javascript">  (function() {    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;    po.src = 'https://apis.google.com/js/plusone.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);  })();</script>

For more tags and options, visit:

https://developers.google.com/+/plugins/share/?utm_source=blog&utm_medium=gplusdevelopers&utm_campaign=shareplugin

Tagged , , , , ,

Sharing

About Aidan Bradley

Aidan Bradley is an Enterprise Solutions Architect with a keen interest in emerging technologies and Business Consulting. His passions include Web Design and Development, and he is an avid supporter of the Australian Start-Up community.

View all posts by Aidan Bradley →

Related Posts

16 Comments

  1. TashWordMay 1, 2012 at 11:05 amReply

    Have you implemented this somewhere Aidan so I can see what it looks like please?
    TashWord recently posted..Social media predicts stuffMy Profile

  2. Aidan BradleyMay 1, 2012 at 11:26 amReplyAuthor

    We’ll be adding it on in a day or so for everyone to have a play :)
    Aidan Bradley recently posted..5 Guiding Steps: A Freelance Logo Designer CareerMy Profile

  3. Aidan BradleyMay 1, 2012 at 11:34 amReplyAuthor

    There we go I’ve added in a version of the simple button into the article
    Aidan Bradley recently posted..Skype To Be Accessed Via BrowserMy Profile

  4. TashWordMay 3, 2012 at 1:40 pmReply

    Thanks Aidan :)

    Does sharing a link also give it a plus 1, or are they completely separate actions?
    TashWord recently posted..Blog editing policiesMy Profile

  5. LeetPro77July 5, 2012 at 10:28 pmReply

    This looks great, am going to try to implement it into my site.

    Thanks for the help!

  6. izzypopaJuly 13, 2012 at 5:12 amReply

    Thanks a lot for this, i will use it on my forum even though Google Plus doesn’t seem to be as popular as Facebook, but it couldn’t hurt to just chuck it up there :)
    Thanks heaps mate!

    • LauraJuly 19, 2012 at 8:19 pmReply

      Don’t be mistaken, Google plus is growing more and more. I was surprised when I add the button on my blog

  7. BreakfreeJuly 13, 2012 at 10:19 pmReply

    Well , Google Plus is already popular so it won’t hurt using it on my blog, on hte ocntrary I have great expectations from using it . I am waiting for increase of traffic in my blog.

  8. LauraJuly 17, 2012 at 6:45 pmReply

    Have you seen a difference in the traffic on your blog since you use the Google +1 button?

  9. cuenneJuly 23, 2012 at 3:33 amReply

    Thanks for this. I think this will be helpfull to advertise my forum a bit. I was just wondering. Once a user click the Google +1 Who sees that the user clicked it ? Is this a great way to share a website or only the user who clicked the button will see the link ?

  10. jaruriJuly 30, 2012 at 3:24 amReply

    I’ve already started to use G+ more than I do facebook. This will come come in handy alot! Thanks!

  11. coolboylkAugust 9, 2012 at 5:26 pmReply

    I think due to Facebook timeline and other changes made some people to find to other social networks like Google +, pintrest .. etc. Any how nice post. Keep it up.

  12. arajooAugust 11, 2012 at 6:43 pmReply

    I added Google plus in my blog but it didn’t help much in promotion. I guess it still boils down to how popular your blog or site is prior to adding Google plus. Anyway Google plus is still indeed growing so I guess there is more to come and I am sticking with them.
    arajoo recently posted..Review: ELF Studio Line Pink Passion BlushMy Profile

  13. MoniqueSeibelAugust 17, 2012 at 10:26 amReply

    I really need to figure out how to utilize this and Google + in general. I feel as though there is no point to even including them on my blog, until I have more people in my circle. I feel like every other day there is a new popular social network to be on.
    MoniqueSeibel recently posted..Make Money Online – Proof Web Perspectives PaysMy Profile

  14. dhintakaAugust 28, 2012 at 4:29 pmReply

    Thanks for this information. I still need to figure out if I really need to use this as I have less people in my circle. I surely want to know how helpful has this been in creating traffic?

  15. PaladinSeptember 26, 2012 at 11:20 amReply

    Thanks for this. I think this will be helpfull to advertise my forum a bit. I was just wondering. Once a user click the Google +1 Who sees that the user clicked it ? Is this a great way to share a website or only the user who clicked the button will see the link ?
    Paladin recently posted..Re: Make Money From JokerooMy Profile

Leave a reply

Your email address will not be published. Required fields are marked *

*

CommentLuv badge

Subscribe for our Weekly Digest

Recent Comments
  • Click To See More: Wonderful beat ! I would like to apprentice whilst you amend your website, how can i subscribe for a blog site? The account helped me a applicable deal. I have been a little bit acquainted of this your broadcast offered vibrant transparent idea View Post
  • kayseri rent a car: Great post. I was checking continuously this blog and I am impressed! Very useful info specifically the ultimate phase :) I maintain such information a lot. I was looking for this certain information for a long time. Thank you and best of luck. View Post
  • stybeatty: Продаю акки Liveinternet.ru Продаю автореганные аккаунты Liveinternet.ru в одни руки По всем вопросам пишите сразу в аську ICQ 231538 купить tumbler аккаунты , продажа аккаунтов вконтакте , vkontakte.ru sms украина , купить аккаунты e-mail , магазин аккаунтов facebook , продажа аккаунтов вконтакте онлайн , купить аккаунты вконтакте , продажа аккаунтов одноклассники , 1 google продажа , продам аккаунты facebook , продам аккаунты одноклассники , купить аккаунт pva , город друзья комментарии yahoo hotmail , hotmail интернет магазин , с мгновенной доставкой , продажа аккаунтов вконтакте , магазин продаж аккаунтов , продам аккаунты в контакте , куплю аккаунты в контакте через сервис , продаю редиректы , купить аккаунт liveinternet , онлайн магазин аккаунтов вконтакте , покупка аккаунтов вконтакте с фото , что делать с купить аккаунты liveinternet , продажа аккаунтов yahoo , продам аккаунт livejournal , аккаунты онлайн магазин twitter , редиректы pochta.ru , онлайн магазин аккаунтов вконтакте , купить акаунты hotmail , редиректы pochta.ru , магазин аккаунтов вконтакте , продажа аккаунтов mail.ru , купить аккаунты gmail , продам аккаунты мамба з , продам аккаунты одноклассники , купить почту yahoo , стоимость свежих акков mamba real , liveinternet.ru pinterest , акки от одноклассники , распродажа аккаунтов , gmail купить аккаунты , продам жж аккаунты , продам акки фейсбук , купить mail.ru аккаунты , продам аккаунты facebook , купить facebook pva , продажа аккаунтов yahoo , mamba real status , продажа акков одноклассников , где купить аккаунты facebook , каталог аккаунтов яндекс почты , как найти профиль мамба с помощью номера телефона , с мгновенной доставкой , аккаунты вконтакте купить онлайн , где купит аккаунты View Post
  • Destiny Marietta: Lady Gaga, is an American singer, songwriter, record producer, activist, businesswoman, fashion designer and actress. Born and raised in New York City, she primarily studied at the Convent of the Sacred Heart and briefly attended New York University's Tisch School of the Arts before withdrawing to focus on her musical career. She soon began performing in the rock music scene of Manhattan's Lower East Side. By the end of 2007, record executive and producer Vincent Herbert signed her to his label Streamline Records, an imprint of Interscope Records. Initially working as a songwriter at Interscope Records, her vocal abilities captured the attention of recording artist Akon, who also signed her to Kon Live Distribution, his own label under Interscope.,"^* http://healthmedicinelab.comBye-bye View Post
  • noise cancelling snoring: 5. Hold nasal passages clear View Post
Review www.thewebexecutive.com on alexa.com
DMCA.com The Web Executive - Find me on Bloggers.com