implementing the +1 button best practices ... - google...

74
Implementing the +1 button Best practices and tips June 21, 2011

Upload: others

Post on 26-May-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Implementing the +1 buttonBest practices and tipsJune 21, 2011

Page 2: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Hello

Timothy JordanDeveloper Advocate, Googletimothyjordan.com@timothyjordan

2

Page 3: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Submit a feedback survey for a chance to win a $100 Amazon.com gift card

Page 4: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

#1button

Page 5: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Today’s menu

Why +1?Getting startedBest practicesAdvanced optionsOptimization

5

Page 6: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Why +1?

Page 7: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com
Page 8: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

TinaTamarind Just got back from a 7 mile run!2 minutes ago

BarnyBacon Rob’s concert on Friday was rad! He’s a machine!10 minutes ago

SamSpaghetti Going to Belize in March, any suggestions for things to do?12 minutes ago

CamiCrepe The toast-o-matic is the best toaster oven ever!3 minutes ago

TedTaco Happiness is what you make of it, don’t you think?3 minutes ago

8

Page 9: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

TinaTamarind Just got back from a 7 mile run!2 minutes ago

BarnyBacon Rob’s concert on Friday was rad! He’s a machine!10 minutes ago

SamSpaghetti Going to Belize in March, any suggestions for things to do?12 minutes ago

CamiCrepe The toast-o-matic is the best toaster oven ever!3 minutes ago

TedTaco Happiness is what you make of it, don’t you think?3 minutes ago

9

Page 10: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

google.com/experimental

10

Page 11: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

11

Page 12: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

12

Page 13: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Of consumers online trust recommendations from people they know

Sources: Econsultancy July 2009, Harris Interactive June 2010

90%

13

Page 14: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Sources: Econsultancy July 2009, Harris Interactive June 201014

Say reviews from family members or friends

influence purchase decisions

71%

Page 15: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

15

Page 16: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

16

Page 17: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

17

Page 18: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

This article looks good, but I want to

check it out.

18

Page 19: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

19

This article isgreat, +1!

Page 20: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

20

Page 21: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

21

Page 22: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

22

Page 23: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Organic Result

23

Page 24: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Paid Result

24

Organic Result

Page 25: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

25

Paid Result

Organic Result

YourSite

Page 26: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

More traffic, better traffic

• Social connections may increase CTR on paid and organic search listing

• Search traffic is pre-qualified through personal recommendations

26

Page 27: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Getting started

Page 28: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

28

google.com/webmasters/+1button

Page 29: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

+1 button snippet

<script type="text/javascript"  src="http://apis.google.com/js/plusone.js"></script><g:plusone></g:plusone>

29

Page 30: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

+1 button snippet

<script type="text/javascript"  src="http://apis.google.com/js/plusone.js"></script><g:plusone></g:plusone>

30

Page 31: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

+1 button snippet

<script type="text/javascript"  src="http://apis.google.com/js/plusone.js"></script><g:plusone></g:plusone>

31

Page 32: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Basic page

<html>  <head>    <title>+1 demo page: Basic</title>    <link rel="canonical" href="http://www.example.com/" />    <script type="text/javascript"      src="http://apis.google.com/js/plusone.js">    </script>

  </head>  <body>    <g:plusone></g:plusone>  </body></html>

32

Page 33: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Basic page

<html>  <head>    <title>+1 demo page: Basic</title>    <link rel="canonical" href="http://www.example.com/" />    <script type="text/javascript"      src="http://apis.google.com/js/plusone.js">    </script>

  </head>  <body>    <g:plusone></g:plusone>  </body></html>

33

Page 34: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

For multiple URLs pointing to similar contentUsing rel=canonical

34

Page 35: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

For multiple URLs pointing to similar content, use rel=canonical, so the page gets the maximum number of +1s

Using rel=canonical

35

Without rel=canonical

Page 36: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

For multiple URLs pointing to similar content,use rel=canonical, so the page gets the maximum number of +1s

Using rel=canonical

36

With rel=canonical

Page 37: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Basic page

<html>  <head>    <title>+1 demo page: Basic</title>    <link rel="canonical" href="http://www.example.com/" />    <script type="text/javascript"      src="http://apis.google.com/js/plusone.js">    </script>

  </head>  <body>    <g:plusone></g:plusone>  </body></html>

37

Page 38: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Best Practices

Page 39: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

+1s are for URLs

39

It must be a public, crawlable URL

Page 40: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

For multiple +1’s on a single page, set the “URL to +1”, so each article is counted as it’s own +1

+1s are for URLs

40

Page 41: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

For multiple URLs pointing to the same page, use rel=“canonical”, so the page gets the maximum number of +1s

+1s are for URLs

41

Page 42: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

+1s are for URLs

42

The URL is determined by:

• The href attribute<g:plusone href=”http://www.example.com”></g:plusone>

• The value of the link rel="canonical" tag<link rel=”canonical” href=”http://www.example.com” />

• The URL of the page as defined in document.location.href

Page 43: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Place near sharable content

43

Or with other social sharing

buttons

Near product descriptions or images

Beginning and end of articles

Page 44: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Place near sharable content

44

You can include the following toexplain the +1 button to users

Click +1 to recommend this page in Google search.

+1 is shorthand for “you should check this out.” +1 this page to recommend it in Google search.

OR

Page 45: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Be clear what the user will +1

WrongWhat does this +1?

RightClear this +1’s the movie

45

Page 46: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Don’t try to buy +1’s

46

It’s against Google policies to promote prizes for +1 button clicks.

Full policies: goo.gl/U4gI9

Page 47: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Best practices

47

+1‘s are for URLsPlace on public pagesUse canonical URLsSet “URL to +1”

Good user experiencePlace near sharable contentBe clear what the user will +1Don’t try to buy +1’s

Page 48: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Advanced options

Page 49: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

The situation• You want to test the button in your private environment before deployment• The URLs in this testing environment are private• The +1 button requires a public URL• Clicks on buttons in this private environment will result in an error button

Two solutions1. Verify button render and ignore the error button upon click2. Canonicalize your private URLs to the public counterparts

http://private.example.com/some/path has a rel=canonical of http://www.example.com/some/path

Testing environment

49

Page 50: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Button sizes

Button Width Max width Height

Small without count 24 — 15

Small with count — 70 15

Medium without count 32 — 20

Medium with count — 90 20

Standard without count 38 — 24

Standard with count — 106 24

Tall 50 60

50

all sizes are in pixels

Page 51: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Parameters for the +1 tag

Value Default

size small, medium, standard, tall standard

count true, false true

callbackThe identifier for a function in

the global namespace No function

href URL of page to +1 URL of enclosing page

Page 52: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Parameters for the script tag

Value Default

lang {pt-BR, en-US, ...} en-US

parsetags {explicit, onload} onload

52

Page 53: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Description

gapi.plusone.go(container);

This renders all magic tags/classes in the specified container, which may be either an element (by value) or a string element ID.

gapi.plusone.render(container, {'size': ‘standard’, 'count': true});

This renders a +1 button widget within the specified container element, which may be either an element (by value) or a string element ID.

JavaScript API

53

Page 54: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Explicit load<html>

  <head>    <title>+1 demo: Explicit load</title>    <link rel="canonical" href="http://www.example.com" />    <script type="text/javascript" src="https://apis.google.com/js/plusone.js">      {"parsetags": "explicit"}    </script>  </head>  <body>    <div id="content">      <g:plusone></g:plusone>    </div>    <script type="text/javascript">      gapi.plusone.go("content");    </script>  </body></html>

54

Page 55: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Explicit load<html>  <head>    <title>+1 demo: Explicit load</title>    <link rel="canonical" href="http://www.example.com" />    <script type="text/javascript" src="https://apis.google.com/js/plusone.js">      {"parsetags": "explicit"}    </script>  </head>  <body>    <div id="content">      <g:plusone></g:plusone>    </div>    <script type="text/javascript">      gapi.plusone.go("content");    </script>  </body></html>

55

Page 56: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Explicit render<html>

  <head>    <title>+1 Demo: Explicit render</title>    <link rel="canonical" href="http://www.example.com" />    <script type="text/javascript src="https://apis.google.com/js/plusone.js">      {"parsetags": "explicit"}    </script>    <script type="text/javascript">      function renderPlusone() {        gapi.plusone.render("plusone-div");      }    </script>  </head>  <body>    <a href="#" onClick="renderPlusone();">Render the +1 button</a>    <div id="plusone-div"></div>  </body></html>

56

Page 57: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Explicit render

57

<html>  <head>    <title>+1 Demo: Explicit render</title>    <link rel="canonical" href="http://www.example.com" />    <script type="text/javascript src="https://apis.google.com/js/plusone.js">      {"parsetags": "explicit"}    </script>    <script type="text/javascript">      function renderPlusone() {        gapi.plusone.render("plusone-div");      }    </script>  </head>  <body>    <a href="#" onClick="renderPlusone();">Render the +1 button</a>    <div id="plusone-div"></div>  </body></html>

Page 58: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

For large publishers

goo.gl/1Q3G3

58

If you are going to show more than 100 queries per second

of button renders, which is around 900K button renders a day,

please let us know.

Page 59: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Optimization

Page 60: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Two places for data, available soon

How does +1 affect organic search and ads CTR?Who +1’s my content? (aggregate)

60

webmaster tools

+1 button focus

Page 61: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Two places for data, available soon

How does +1 affect organic search and ads CTR?Who +1’s my content? (aggregate)

How do users who use social plug-ins interact with my site?

61

webmaster tools

+1 button focus Compares across social plug-ins

Page 62: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Webmaster tools: Activity Page

62

Page 63: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Webmaster tools: Search Impact

63

Page 64: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Webmaster tools: Audience

64

Page 65: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Webmaster tools: Audience

65

Page 66: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Google Analytics: Social Engagement

66

Page 67: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Google Analytics: Social Engagement

67

Page 68: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Google Analytics: Social Engagement

68

Page 69: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Google Analytics: Set-up

69

None, once availableData visible within1 hour of +1 buttonimplementation

Small change to Analyticstracking code:_trackSocial(network, action, target_url)

network: social network of the plugin

action: the action taken (e.g. Tweet)

target_url: the URL the action was taken on

Page 70: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Summary

Page 71: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Summary

• +1 annotations may increase CTR on paid and organic search listings

• The +1 button on your site gives your users more opportunity to click

• Integration is straight-forward and flexible• Customization can help your +1’s show up in search more • Optimization tools coming soon

71

Page 72: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Next steps

72

Get the code for your site:google.com/webmasters/+1button

Try out the search experiment: google.com/experimental

Subscribe to our publisher buttons announce group: http://goo.gl/F8Y2Z

Page 73: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Additional resources

73

Advanced instructions on Google code site:code.google.com/apis/+1button

Frequently asked questions on Webmaster Central:goo.gl/s8fci

Page 74: Implementing the +1 button Best practices ... - Google Searchservices.google.com/fh/files/events/Plus_1_Button_Implementation_Webinar.pdf · Developer Advocate, Google timothyjordan.com

Q & A