Social media plays a big part in the online world now. But how much? 

This post is going to cover a number of methods for tracking social media activity using Google Analytics. Tracking social interaction in and out of your website and seeing how social media users behave on your site is going to give you some of the best insights you could hope for. 

Other tools are available for tracking social activity, but none really dig deep into your website. Now considering your website is going to be where you make your money, I’m going to focus on that.

The areas I’m going to cover here are:

  • Tracking social buttons on your website..
  • Tracking your social media content off your website
  • Analysing traffic from social media sources.
  • A few extra ideas.

Tracking clicks on social buttons

In the new version of Analytics, Google has introduced a Social report to automatically track clicks on the +1 buttons located on your site pages.

It can also be used to track non-Google social interactions, such as Facebook Likes and Twitter follows and tweets, though these require extra code.

To track clicks of the Google +1 button on your site, all you need to have is the asynch version of the tracking code. This is the one with the word ‘push’ that goes in the

rather than the .

As it’s mildly complex, here’s a helpful post on implementing social tracking for Facebook and Twitter buttons. This includes the JavaScript and extra code required to get Google Analytics to pull in the data.

To see the data for these three actions, navigate to Visitors > Social > Engagement, Action and Pages.

Socially engaged statistics in Google Analytics

What we can see from the above statistics is that those who click a social button on the website (i.e. Socially engaged users) spend a lot longer on site, visit more pages and are often returning visitors. 

You can also compare goal and e-commerce statistics of socially and not socially engaged users. This is to see if socially engaged users convert differently to those who are not socially engaged.

Social engagement conversion rate

Within the Action report you can see which social interaction happened and how many times it happened, for example:

Types of social interactions in Google Analytics

You can also break down the site usage by the buttons clicked so that you can compare pages per visit, time on site, percentage of new visits and conversions across the different social interactions.

This is to see whether people who +1 something are more valuable to you than users who tweet the content:

Social action engagement in Google Analytics

Additionally, you can see which pages have seen which actions, all in one table. This is handy as many of the buttons can report the statistics visually on the page, however through using this report you can see all the pages’ social clicks in one place:

Social action by page in Google Analytics

This social area within Google Analytics can now become a core part of analysing the social interaction on your site. It can also help you make decisions about keeping or losing the social buttons and encourage you to address the issue if they are not working, as well as helping you experiment with where to position them.

Tracking your social media links

Sometimes a link posted on Facebook or Twitter will result in a lead, but how would you know unless you tracked it? 

If you are posting links on social media platforms it is beneficial to build custom URLs with tracking code in, which is then easily hidden when you use a URL shortener.

The simplest way to do this is to use Google’s URL tool builder, plug in your URL, add in what you would like to see your data under in Google Analytics and generate your URL. 

I’d recommend naming all your links clearly and deciding on your full naming strategy before you begin to ensure all mediums and sources are grouped how you want them to be reported in Analytics. The Campaign variable is useful for naming specific social campaigns you might be running or highlighting what you are trying to promote.

If you post to Twitter a lot or you want to make things easier for yourself or your team in the long run, I highly recommend using a spreadsheet and the concatenate function to build custom tracking URLs for you. This will ensure everything is consistent in the long run. 

Also, when you then shorten your tracking URL with a shortening service, try to make sure you use a service that gives you click statistics, such as, just for that extra bit of data. 

Charlie Southwell has put together a very useful spreadsheet that you can download here and use to build your tracking URLs. It can even create shortened URLs for you.

Analysing the data – Advanced Segments

Advanced Segments are essential for breaking down information in Google Analytics and showing you specific data on its own, or alongside another segment that you want to analyse. By setting up a segment for social media traffic you can see how visitors from social media interact with your site and compare this to users who do not come from social media. 

I also like to pick the top referring sites and track these individually so that I can compare Twitter versus Facebook and see the differences between my core social sources. This often leads to an interesting analysis and can help you assess the value of each platform to help you avoid bulking your investment together and not understanding the return from each aspect, which can vary dramatically. 

Another way to segment the data would be to group the social media sources that you actively invest time or money into and compare their statistics to social sources that you don’t actively go after. This could identify opportunities to invest in profitable areas and reign in spend and time where it can’t be justified.

Combining your segments with an analysis of custom variables that specify the demographics of the users will really show you the difference between users who don’t come to your site via social media and those who do. 

To set up an advanced segment click the Advanced Segments link, then in the bottom right of this section click + New Custom Segment. Here you specify the details of the segment:

To include all social media sites in one segment use the following handy string, as built by Sitevisibility for the Source regex (second box pictured above):




And as well as setting up include segments, I would also create a segment to exclude traffic from social sources to help you analyse what type of users do not come from social sources. 

Segments are good and bad in the way that if a user has been to your site twice, once from and once not from social media, all of these user visits would count within the include social media segment.

Analysing the data – Custom Reports

Once you know what you want to keep an eye on and which metrics mean the most to you, I would recommend setting up a custom report to display this data cleanly in one place. Additionally, you could set up a custom dashboard to keep an eye on the data on a regular basis and of course link from this data to the custom report you’ve created where possible.

Start by creating a custom report, choose metrics such as visits, bounce rate, conversions and group these in a methodical way. Set up a filter on the report to include sources matching the regular expression above and once you’re happy with the report you can add it to a dashboard using the link at the top of the report.

I’ve created a custom report for you, just make sure you’re signed into Google Analytics and you should be able to save and access this nice and easily.

Analysing the data – Custom Dashboards

In addition to a custom report you can also set up a custom dahsboard for the social data you want to monitor regularly. This will show you all your social statistics in one place, including tables, graphs and more importantly it will be exactly what you choose it to be. 

To set up a custom dashboard follow these steps:

  • Navigate to your profile.
  • Click the Home button.
  • Under dashboards click + New Dashboard.
  • Choose a blank dashboard.
  • Add widgets with the content you want to track.
  • Add a filter to each widget to include Source matching regular expression with the social group above.

    Social Media custom dashboard in Google Analytics

    The data that means the most to you can now be displayed all in one page, you can also set up each widget to link to a custom report for a complete view of the data. 

    Analysing the data – Intelligence Alerts

    One more way to track your social progress without much effort is to set up Intelligence Events (previously called Intelligence Alerts) to email you when things change. 

    Things you might use Intelligence Events for:

    • Increase or decrease in traffic from a certain social source.
    • Increase or decrease in all social traffic.

    Intelligence events are monitored from the area within the Home tab, but have to be set up within the profile settings area, like so:

    • Click the cog to access profile settings.
    • Click Custom Alerts.
    • Click Create new alert.
    • Name it and choose your profiles to show it in.
    • Choose Day.
    • Check the Send me an email box.
    • Select any other email addresses to send it to.
    • Set the Alert Conditions.
      • This applies to: 
        • Select the custom segment you’ve set up for social media.
      • Alert me when: 
        • Visits > % increases by more than > 25 > Same day in the previous.


    As this was rather long with a lot of different methods, here’s a summary of all the tips I included above:

    • Track clicks on social buttons on your site.
    • Analyse social engagement within your site.
    • Use campaign tagging for URLs you share.
    • Use a URL shortener for up to date click statistics.

    Analyse data in Google Analytics using:

    • Advanced segments.
    • Custom Reports.
    • Custom Dashboard.
    • Intelligence Alerts.
    • Real Time Reporting

    Other social media tracking ideas

    In addition to the monitoring you can do within the Google Analytics environment, I would encourage you to think outside the box and see how else you can use the information available to improve your social media investments.

    How about:

    • Set up Google Alerts for the content you promote socially.
    • Watch the progress of Twitter activity by using search columns in Tweetdeck.
    • Use top referring keywords in Google Analytics to search for new followers on Twitter.
    • Install a Firefox plugin to see social media metrics in your content report.
    • Use a social monitoring tool such as BrandsEye for constant visibility.