Here's where to get the Google+1 social sharing button for your web site.
Here's a function I use in my global site JavaScript file to also track events in Google Analytics when people turn the +1 button on or off. To use this, add googlePlusOneCallback as "JS Callback function" under the "Advanced options" when you configure your button. Update the last 3 values for the way you track events on your site. (The values I used below will track a Google Analytics Event with Category "share", Action "googleplus-on" or "googleplus-off", and the Label will be the URL of the page the button was on.)
function googlePlusOneCallback(obj){
_gaq.push(['_trackEvent','share','googleplus-'+obj.state,obj.url]);
}
As more companies encourage their customers or users to share more, people are beginning to notice and worry.
Showing posts with label Analytics. Show all posts
Showing posts with label Analytics. Show all posts
Saturday, July 9, 2011
Subscribe to:
Posts (Atom)