Easily add KissMetrics code and user tracking
KissMetrics allows you complete free choice in events. See the following page for a little more information: http://support.kissmetrics.com/apis/api-tips
The Facebook social plugins emit a number of events. Most importantly the "edge.create" event which is triggerd when a user clicks a like button on your page. Assuming you have an XFBML like button somewhere on your page you can use the following snippet:
You should paste this code just below wherever you include the button.
You can use an XFBML like button on this page: http://developers.facebook.com/docs/reference/plugins/like/
Tracking Twitter events is very similar to Facebook tracking. Include the following snippet just below any Twitter follow code:
If you want to track tweets, use this:
A full list of events you can track is in the Twitter dev docs: https://dev.twitter.com/docs/intents/events
It's easiest to add the tracking when you create your button: http://www.google.com/webmasters/+1/button/
Click on "Advanced Options" and enter "plusone_vote" into the "JS Callback Function" field.
Below the +1 code, include the following snippet:
This currently requires an undocumented feature, so keep in mind that this might change in the future. Start by creating your button on the LinkedIn dev pages https://developer.linkedin.com/plugins/share-button Inside the "IN/Share" tag section you need to add the "data-onSuccess" callback function. Here's an example: