Adding a Google Plus (one or share) link to an email newsletter

前端 未结 8 1996
终归单人心
终归单人心 2020-12-12 08:48

I am trying to find a way to embed a share/+1 link for Google+ in a Newsletter, much like the Facebook share and tweeter tweet links can be embedded in a newsletter, which c

相关标签:
8条回答
  • 2020-12-12 09:12

    The share link allows you to do this. It will work in an email, but it's not quite the same as the +1 button.

    To use the share link, add a link element to your email that complies with the Google+ Buttons policy. Set the href attribute to https://plus.google.com/share?url={url encoded share target}

    For example, linking to https://plus.google.com/share?url=http%3A%2F%2Fexample.com will allow you to share example.com on Google+: (yes, that is a working demo).

    Check out the official docs for more info.

    If you use this approach please be aware of the fact that it is not a direct replacement for the +1 button. The link shares the target URL on Google+, but it does not actually +1 the target page. Only the +1 button can +1 a page.

    0 讨论(0)
  • 2020-12-12 09:13

    Maybe this helps. It works (partially) for me. http://www.stateofsearch.com/share-on-google-plus-any-website/

    0 讨论(0)
  • 2020-12-12 09:17

    There has got to be a way to do this by hacking the +1 script.

    If you are interested in just changing the apperance you should download and modify this to suit your requirements.

    Then, add this to your css:

    .Uu .KF {
        background: url("your-replacement-image") no-repeat scroll -132px -21px transparent !important;
    }
    

    to override the Google icons. However, this is probably very unstable and subject to change.

    0 讨论(0)
  • 2020-12-12 09:24

    I'm using the following.. :)

    https://m.google.com/app/plus/x/?v=compose&content=[TEXT]%20[URL]
    0 讨论(0)
  • 2020-12-12 09:27
    https://plus.google.com/share?url=http%3A%2F%2Fexample.com
    

    You can share the link on Google+ with the official Google+ share link. Replace the url parameter with the URL encoded link you want to share.

    0 讨论(0)
  • 2020-12-12 09:32

    This one works fine for me :

    https://plus.google.com/share?url=your-page-url

    0 讨论(0)
提交回复
热议问题