This QuickCode Tag is used to add a Google+ "Plus One" (+1) button to any page of your online store.
The tag can be used as-is to display a +1 button in your storefront. However, it can also accept several parameters, which can be used to customize its appearance and behavior. The available parameters include:
href
Sets the URL to +1. Set this attribute when you have a +1 button next to an item description for another page and want the button to +1 the referenced page and not the current page. If you set this attribute by using gapi.plus.render, you should should not escape the URL.
Possible values: Any URL
Default: Current page's URL
size
Sets the +1 button size to render.
Possible values: small, medium, standard, tall
Default: standard
annotation
Sets the annotation to display next to the button.
Possible values: none, bubble, inline
Default: bubble
width
If annotation is set to "inline", this parameter sets the width in pixels to use for the button and its inline annotation. If the width is omitted, a button and its inline annotation use 450px.
Possible values: Any number
Default: —
align
Sets the horizontal alignment of the button assets within its frame.
Possible values: left, right
Default: left
expandTo
Sets the preferred positions to display hover and confirmation bubbles, which are relative to the button. Set this parameter when your page contains certain elements, such as Flash objects, that might interfere with rendering the bubbles.
Possible values: comma-separated list of top, right, bottom, left
Default: empty list
callback
If specified, this function is called after the user clicks the +1 button. The callback function must be in the global namespace and accept a single parameter, which is a JSON object.
Possible values: function(jsonParam)
Default: —
onstartinteraction
If specified, this function is called either when a hover bubble displays, which is caused by the user hovering the mouse over the +1 button, or when a confirmation bubble displays, which is caused by the user +1'ing the page. You can use this callback function to modify your page, such as pausing a video when the bubble appears.
Possible values: function(jsonParam)
Default: —
onendinteraction
If specified, this function is called when either a hover or confirmation bubble disappears. You can use this callback function to modify your page, such as resuming a video when the bubble closes.
Possible values: function(jsonParam)
Default: —
recommendations
To disable showing recommendations within the +1 hover bubble, set recommendations to false.
Possible values: true, false
Default: true |