Social interaction measurement allows you to measure a user's interactions with various social network sharing and recommendation widgets embedded in your content.
A social interaction is comprised of the following fields:
- String network – represents the social network with which the user is interacting (e.g. Facebook, Twitter, etc.).
- String action – represents the social action taken (e.g. Like, Share, +1, etc.).
- String target (optional) – represents the content on which the social action is being taken (i.e. a specific article or video).
Social interaction data collected by the Google Analytics SDK for Windows 8 and Windows Phone is only available in custom reports.
To send a social interaction to Google Analytics, call SendSocial as in the following example, where an interaction with a Twitter Tweet button is measured on the Analytics developer site homepage:
Tracker tracker = EasyTracker.GetTracker(); // Get tracker object.
tracker.SendSocial("Twitter", "Tweet", "http://googleanalyticssdk.codeplex.com"); // Send social interaction.