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

前端 未结 8 1997
终归单人心
终归单人心 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:35

    I personally suggest Google Plus Interactive Posts button https://developers.google.com/+/web/share/interactive to use in your apps/websites.Here Google Plus allows many customizations to do according to the requirement. I have used it in my app. Its a better option than Share button.

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

    Solution for those who needs custom title, description and image. You should make following changes to target URL:

    Step1. add itemscope itemtype="http://schema.org/LocalBusiness" into <html> tag. It will look like <html itemscope itemtype="http://schema.org/LocalBusiness">. More itemtypes here

    Step2. Place the follwing meta tags into <head>, change content attributes according your needs:

    <meta itemprop="name" content="{Custom title goes here}">
    <meta itemprop="description" content="{Custom description goes here}">
    <meta itemprop="image" content="{http://www.your_url.com/your_image.png}">
    

    Step3. Add the following link to your newsletter or anywhere you want:

    <a href="https://plusone.google.com/_/+1/confirm?hl=en&url=http://www.your_url.com">Share it</a>
    

    Tip. To check how google sees your page, you can use this tool http://www.google.com/webmasters/tools/richsnippets. Probably you'll be interested in section Extracted rich snippet data from the page

    Good luck, Lauris

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