This is a quick post to show you how to track user interactions with “social” buttons inside Google Analytics.
Luckily, the three main social interaction buttons that you see around the web (Facebook’s ‘Like’, Twitter’s ‘Tweet’, and Google’s ‘+1’), all have ways of letting you perform an action when they’re clicked.
That code assumes that you’ve got
I’ve assumed you’ve already got
twttr available as objects, which will be true if you’ve got Facebook and Twitter buttons loaded in the usual way.