google-plus-one


google plus one button statistics


I would like to know how to get the value for the +1 value((if there are 10 clicks +1 button, store 10 as a variable). This would be helpful for analysis purposes.
I know the count parameter is only Boolean or plusone.state returns on/off but is there something like plusone.value? ( i tried it, it's undefined)
Thanks
Download the following url: https://plusone.google.com/u/0/_/+1/fastbutton?count=true&url=URLENCODED_URI via your favorite automatic method (curl, wget, file_get_contents, etc...)
URLENCODED_URI is the site you which to know the number of +1's for, e.g. http://www.google.com
For example, fetch the URI https://plusone.google.com/u/0/_/%2B1/fastbutton?count=true&url=http://www.google.com/ and locate the first occurance of window.__SSR = {'c': 32414.0 ,'si'. Preferably use regexp for this, but I'll leave the implementation to you and your chosen programming language.
The float number following 'c' is the number of +1's the site have. For google.com this is 32.414. Don't worry about it being a float, it is allways an integer in float format, so you can safely convert it to an integer.
There is an undocumented API for this described here - http://www.tomanthony.co.uk/blog/google_plus_one_button_seo_count_api/
Directions for +1 button tracking can be found at http://yoast.com/plus-one-google-analytics/
On the button creation screen, create a js callback then track the clicks using Google analytics with the following code:
<script type="text/javascript">
function plusone_vote( obj ) {
_gaq.push(['_trackEvent','plusone',obj.state]);
}
</script>
Alternately, use the javascript callback to track it any way you wish.

Related Links

Image not displaying for google plus button with regards to the snippet
Google Plus Not validating page properly and showing red triangle error after clicked
Google Plus Button counter acts differently with URL's that includes https
error in plusone button submit
change height of google plus 1 button
Does Google Plus Button API Support Internet Explorer 8
Google plus button don´t register +1
Sharing url on google plus via google plus button
Plus One Button not traversing the dom to grab snippet data
Searching Through Google +1 Links
Is there a way to get total number of google plus +1's for an entire domain?
phpQuery behaving weird, changing HTML
adjusting width of google plus 1 button
Google plus one button error
google plus one button statistics
google +1 button not showing up

Categories

HOME
vue.js
cntk
cil
symfony
angular-cli
playframework
ubuntu-12.04
vlc
phonegap-cli
xtext
algorithmic-trading
histogrammar
iis-7.5
i2c
eval
contact-form-7
dropbox
facebook-javascript-sdk
google-classroom
keystore
image-recognition
cosmicmind
sendkeys
scala-native
uisplitviewcontroller
arm-template
android-fragmentactivity
tweets
marathon
nmake
scalaz7
onsen-ui
bcrypt
http-method
branch
bus-error
dhtmlx-scheduler
jackson-dataformat-csv
ioc-container
exponential
outsystems
fabric-digits
qtablewidget
geomesa
hashcat
oscommerce
installshield-2012
agent
delphi-10.1-berlin
equivalence
lexical-analysis
wsadmin
bayesian-networks
homekit
lumen-5.3
paas
unity3d-editor
gmt
c64
angularjs-ng-pattern
pax-web
django-filer
uwp-maps
gmsmapview
fortran90
license-key
pyrocms
rx-groovy
debian-based
uos
virus
python-ggplot
pisa
tilestache
rhel5
livechat
dache
bullet
factors
zipalign
opendata
.net-cf-3.5
shiva3d
mailcore
magickwand
htmltextwriter
pys60
unions
userid
hobo
nssavepanel
qtembedded
nagle
pantheios
drawtext
carbide
hibernate3-maven-plugin
file-encodings
swfloader
soft-keyboard
odbc-sql-server-driver
hardware-infrastructure

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App