Posted 06 May 2009 11:04am by Ran Nir with 51 comments

tracking social networks

With so many resources spent on social media marketing these days, the job of analyzing its effectiveness in the overall marketing mix is becoming more important.

If you're using Google Analytics to track your site's visitors and revenue, you'll notice that by default you can analyze traffic mediums such as direct, organic etc, but what about social networks as a standalone traffic medium?

To achieve this level of reporting in Google Analytics and to basically tweak Google Analytics to create this traffic medium, you've got two options.

Option 1: Create a standalone Google Analytics social networks traffic profile

1. Under 'Add Website Profile' in the main Google Analytics screen create a new website profile and name it 'social networks' (always keep your original profile intact)

add website profile

2. Head to 'Filter Manager' in your profile to group all the different social networks to one new medium by applying the following filter

 

filter manager

Filter Name - social networks traffic
Filter Type - custom filter then advanced
Field A -> Extract A - under campaign source add your social networks. For example, I’ve used:

digg|aim|friendfeed|econsultancy|blinklist|fark|furl|misterwongs|wikipedia

|stumbleupon|netvibes|bloglines|linkedin|facebook|del\.icio\.us|feedburner|

twitter|technorati|faves\.com|newsgator|PRweb|msplinks|myspace

|bit\.ly|tr\.im|cli\.gs|zi\.ma|poprl|tinyurl

Field B -> Extract B - none
Output To -> Constructor - campaign medium and name it social networks
Field A Required - yes
Field B Required - no
Override Output Field - yes
Case Sensitive - no

Result - now under traffic sources > medium you’ll find a handy ’social networks’ traffic medium source which includes all the social websites previously grouped together

social networks medium

3. Create another filter which will exclude other traffic sources


Filter Name - exclude other traffic sources
Filter Type - custom filter then exclude
Filter field - campaign medium
Filter Pattern - type organic|(none)|direct|cpc|image
Case Sensitive - no

4. Create another filter to show the full referral path by applying the following filter

Filter Name - full referral path
Filter Type - custom filter then advanced
Field A -> Extract A - choose referral and type (.*)
Field B -> Extract B - none
Output To -> Constructor - choose user defined and type $A1
Field A Required - yes
Field B Required - no
Override Output Field - yes
Case Sensitive - no

Result - now under visitors > user defined you'll find the precise profile or URL which is generating your traffic

full path

Use this method to schedule a handy automated email so you'll get the full picture every morning

Option 2: Use advanced segment in Google Analytics

1. Head to 'Advanced Segments' in your main Google Analytics profile

advanced segments


2. Create a new segment and drag the 'source' box which under 'Traffic sources' to 'dimension or metric' window

3. Open the 'Condition' drop down and under '' paste the following sources:

digg|aim|friendfeed|econsultancy|blinklist|fark|furl|misterwongs|wikipedia

|stumbleupon|netvibes|bloglines|linkedin|facebook|del\.icio\.us|feedburner|

twitter|technorati|faves\.com|newsgator|PRweb|msplinks|myspace

|bit\.ly|tr\.im|cli\.gs|zi\.ma|poprl|tinyurl

(this field is limited to 256 characters)


matches regular expression

4. Now you can start segmenting the data and compare your social networks traffic medium Vs. other traffic sources which are already segmented such as direct and organic traffic

compare traffic sources

You can use this method to compare your social networks traffic against other traffic sources by average basket size, conversion rate and much more. .

Ran Nir is founder of Conversion Counts, a web analytics and conversion optimisation agency, and a guest blogger at Econsultancy. He can also be found on Twitter and LinkedIn.

Reader comments (51):

  1. Bruce C Ziebarth

    3:32AM on 7th May 2009

    Avatar-blank-50x50

    You have answered several questions I have had. I have been looking for a way to analyze my social networks. After all, if you are trying to make money online then you have to analyze. I am new to internet marketing but am finding sites like yours very useful. I will be backlinking this post from my own site. I wish you continued success.

  2. David Iwanow Bronze

    Advisor at The Lost Agency

    7:11AM on 7th May 2009

    David Iwanow

    Wow! looking at the Twitter Buzz this is a popular article, and i agree thank you.

  3. Alec Kinnear Bronze

    Creative Director at Foliovision

    11:55AM on 7th May 2009

    Alec Kinnear

    That's a great tip. More solid advanced technical but practical tutorials like this please.

  4. Mandy

    2:50PM on 7th May 2009

    Avatar-blank-50x50

    Thanks for this great tip!! Just implemented it to an account (option 2) and it works perfectly! Very interesting data!

  5. ben

    3:22PM on 7th May 2009

    Avatar-blank-50x50

    hi,

    thanks for the trick.

    for Option2 : does it work as soon as you configure it or should we wait 24h to see results ?

  6. Ran Nir Bronze

    Founder at Conversion Counts Ltd

    3:40PM on 7th May 2009

    Avatar-blank-50x50

    Hi Ben

    Because you're segmenting available data, it works straight away.  Make sure to use reg ex as the matching option and separate the various sources using (|).

    Hope this helps.

    Ran

  7. Nadia Rusenova

    4:16PM on 7th May 2009

    Avatar-blank-50x50

    I tried the second option and still waiting to see results. Thanks for the tip, really practical and useful one.

  8. ben

    4:18PM on 7th May 2009

    Avatar-blank-50x50

    sorry again ^^

    not sur to understand the translation of "matches regular expression" (option 2).

    In the "sources" drop box menu is it the 1st proposition  (there are 14 propositions) ?

     

    sorry for my baaad english

  9. Ran Nir Bronze

    Founder at Conversion Counts Ltd

    9:43AM on 8th May 2009

    Avatar-blank-50x50


    Hey Ben,

    One of the conditions under 'source' is matches regular expression (or reg ex as some people refer to).  Pick this option and paste your traffic sources such as digg|facebook|myspace so you'll group them to one source.

  10. ccduarte

    12:17PM on 8th May 2009

    Avatar-blank-50x50

    Excelente article! Thank you! Works perfectly in both ways!

     

     

  11. Chris

    12:57PM on 8th May 2009

    Avatar-blank-50x50

    Ran - that's a brilliant tutorial. Thank you so much!

  12. Virante, Inc.

    4:33PM on 8th May 2009

    Avatar-blank-50x50

    Thanks for a very useful tip!

    One small point: in the custom filter, all domains that have a period in them should have a backslash before the period. For example, bit.ly should be bit\.ly in the filter.

  13. Ran Nir Bronze

    Founder at Conversion Counts Ltd

    5:00PM on 8th May 2009

    Avatar-blank-50x50

    Indeed, I've missed that on a few so it should be applied as: |bit\.ly|tr\.im|cli\.gs|zi\.ma|

    Thanks for the correction.

  14. Lopa

    3:03PM on 10th May 2009

    Avatar-blank-50x50

    Hey Ran,
    This is a great tutorial. I used Method 1 but came across a hurdle on the Campaign Source - max 255 characters allowed, so I had to drop a few. How did you manage to get all yours in?

  15. Dave Chaffey

    Digital Marketing Consultant, Trainer, Author and Speaker at SmartInsights.com

    4:29PM on 10th May 2009

    Dave Chaffey

    Thanks Ran - excellent tip. I've added it to my blog post on Configuring Google Analytics (step 10).

    I personally find your Option 2. Advanced Segments best for a review of previous data but can see using Filters is more flexible / controlled.

    One gotcha I found is that copying and pasting your regex has line breaks and of course you have to remove the spaces this generates - I was wondering why Twitter and Wikipedia referrals weren't showing.

  16. Jared O'Toole

    4:58PM on 10th May 2009

    Avatar-blank-50x50

    Great post. Thanks for all the info. It can be so hard to measure results from social media. This will help.

  17. pauleco

    1:48PM on 20th May 2009

    Avatar-blank-50x50

    Hi all,

    Great post - we do need to start looking in more detail at the metrics of our social media activities.

    I am a bit of a GA amateur and as such I may have made a schoolboy error, but I have tried to follow recipe 1 above, and am getting no data whatsoever at the end of it...

    I am supposed to apply the filters to the 'social networks' profile that I created aren't I?How do I get that profile to mine the data collected in from main profile?

     

     

  18. David Iwanow Bronze

    Advisor at The Lost Agency

    1:56PM on 20th May 2009

    David Iwanow

    @pauleco, it can be very easy to messup filters so it excludes all information, you also have to wait around 24-48 hours, it takes longer to get the information if you have filters applied.

    You should always create a new profile when playing with filters, you cannot reprocess existing GA data that has been collected, the profile can only filter new data.

    Since you are based in the UK, have a look at the GAAC partners for Europe, they can often help in hourly packages.

     

  19. pauleco

    3:49PM on 20th May 2009

    Avatar-blank-50x50

    @David

    Thanks for the pointers - much appreciated. Was in the dark there for a while... will see if anything turns up in my new 'social networks' profile in 48 hours. In the meantime I will have a go with the advanced segmentation one...

    Hmm perhaps some consultancy might be useful ;-)

  20. Ran Nir Bronze

    Founder at Conversion Counts Ltd

    4:45PM on 20th May 2009

    Avatar-blank-50x50

    Hi @pauleco,

    As David explained, it takes some time before you'll see actionable information in this profile. 'some time' depends on the level of traffic your getting, the number of filters you've set up in this profile etc. 

    Advance segments on the other hand will work straight away and have the added benefit of using historical data (which I should have mentioned) compared to a standalone profile.

    Hope this makes sense.

    Ran

  21. pauleco

    2:25PM on 21st May 2009

    Avatar-blank-50x50

    Hi @Ran

    Thanks very much for the extra info - I can confirm that method 1 is now showing data :)

    The advance segment worked straight away too cheers..

    As an aside - I may well be in touch with you guys shortly (along with a few UK based GAAC partners as suggested) to get a quote on a GA health check a day or two consulting - we aren't 100% confident we have it set up correctly, or that we are using it optimally.

    Thanks again all

     

  22. David Iwanow Bronze

    Advisor at The Lost Agency

    7:51PM on 21st May 2009

    David Iwanow

    @pauleco

    GAAC partners can be expensive but if you are not getting an accurate picture of your business they can pay for their service within one or two extra sales.

    If this understanding of your business is key to your growth such as your quote form... 

    Another option which would be useful to consider would be upgrading from Urchin to GA script, which the GAAC partners will be able to advise.

    Best of luck and Ran thanks for a great article that has helped business use google analytics.

  23. MARY

    1:49AM on 24th May 2009

    Avatar-blank-50x50

    Hi this was a great article. I had a little problem with step#3. There is not mention what to do right before we hit SAVE CHANGES when setting up the filter

    In the Create New Filter window there is a section call Apply Filter to Website Profiles. QUESTION: Do we ADD from the WEBSITE PROFILES list the "social networks traffic" profile we just created into the WEBSITE PROFILES  box?

    3. Create another filter which will exclude other traffic sources


    Filter Name - exclude other traffic sources
    Filter Type - custom filter then exclude
    Filter field - campaign medium
    Filter Pattern - type organic|(none)|direct|cpc|image
    Case Sensitive - no

     

  24. marinic

    2:08PM on 25th May 2009

    Avatar-blank-50x50

    you state "Under 'Add Website Profile' in the main Google Analytics screen create a new website profile and name it 'social networks' (always keep your original profile intact"  but you cannot create a new profile without adding its url.

    Which URL should be added to

    Please provide the URL of the site you would like to track.

    Examples: www.mywebsite.com

    your suggestion to use social networks is not accepted. Pls. advise

     

  25. Fran Jeanes Bronze

    Internet Business Consultant at i-contact web design

    2:31PM on 26th May 2009

    Fran Jeanes

    This is the best little gem of info I've had in the last week. :) Thanks a bunch!

  26. Toby Field

    3:28PM on 10th June 2009

    Avatar-blank-50x50

    Can you fix the missing pictures on this post?

  27. SEO Sydney

    5:51AM on 11th June 2009

    Avatar-blank-50x50

    Hello Ran, Thanks for the best advice.

    I have been searching this social network tracking in Google analytics since 1-2 months. There are some images which are not shown in this post. so still I am confuse for some tips...

    Anyways thanks for the helpful tips.

  28. ed

    10:55AM on 11th June 2009

    Avatar-blank-50x50

    all other referral websites show up fine, except bit.ly

    it just won't show up in google analytics. any reason why?

  29. Link Moser

    7:22PM on 13th August 2009

    Avatar-blank-50x50

    All things being equal, is there a method above you'd recommend over the other?

  30. Patelligence

    9:13PM on 31st August 2009

    Avatar-blank-50x50

    Thank you for this very useful article. I have been using google analytic. But i didnt know that Im able to do all these..

  31. emma boyle

    4:01PM on 6th November 2009

    Avatar-blank-50x50

    Hi, I have set-up option 1 which appeared to be working fine in the beginning. However, it doen't seem to be excluding other traffic. Any ideas why? And it's not just including other social media sites not in my list, it's showing cpc, organic, email etc. Thanks, Emma

  32. Kevin Charlton Silver

    Head of Innovation at fuse8

    4:21PM on 9th December 2009

    Kevin Charlton

    Great step by step guide. With small alterations works for me!

  33. SEO uzmani

    1:07AM on 12th December 2009

    Avatar-blank-50x50

    Everyday im learning more about Google analytics. I didnt know that google anayltics is that much useful. Thanks for this great article.

  34. Deana Goldasich

    10:48PM on 15th December 2009

    Avatar-blank-50x50

    Absolutely FANTASTIC information. Thank you so much for diving into the details this is incredibly useful and helpful!

  35. Mark Carter Bronze

    SEO Specialist at High Position

    7:25AM on 29th December 2009

    Mark Carter

    Many thanks for this .... successfully set up the Social Media segmentation in Google Analytics

  36. Fredrick Wilderson

    6:35PM on 30th January 2010

    Avatar-blank-50x50

    Stupid question: after I set up Option 2, which screen do I visit to see results like the screenshot?

     

    The 'basket size by traffic source' screen shows a green line but I can't find that anywhere after applying the regex stuff....

  37. Barrie Adams

    12:00PM on 16th February 2010

    Avatar-blank-50x50

    I prefer to use Advanced Segments, and love this quick and easy way to measure your social networking efforts. I apply this segment to one profile, then share it among my entire domain portfolio, so you only need to set it up once.

  38. Barrie Adams

    12:02PM on 16th February 2010

    Avatar-blank-50x50

    Fredrick Wilderson, you should see the new option in your 'Advanced Segments' drop down in the top right corner, select the 'Social Networks Traffic' segemtn you just setup and apply it, you will see then see the data.

  39. Jemma

    2:54AM on 9th March 2010

    Avatar-blank-50x50

    Thanks for this I didn't even know it was possible, great bit of information. Cheers

  40. Jason

    4:15PM on 4th April 2010

    Avatar-blank-50x50

    Yes ! Thank You ! Big Brother. Thank you for keeping all our information and for your close ties to the NSA. Here we were worried that something close to the 'Stazi' could happen in America. How relieved I am to see that you have found a way to surpass the Stazi. How embarrassing it would have been to only be a third rate Fascist Plutonomy. I can see that we are only a few steps away now from installing cameras in bedrooms ... oh wait ... never mind. I can see that we are only a few steps away from being legally able to turn people upside down and shake money out of their pockets... uh..er... yeah ... never mind that one too. Anyways I'm just so glad to see all of this positive feedback from everyone here. Yes America is thinking towards our future and with minds like these serving the rich we will all have bright tomorrow ... well ... the top 1% will anyways... but that's a start right ?

  41. jagadish

    10:57AM on 10th May 2010

    Avatar-blank-50x50

    Really Help full article, feel the power of advanced segments of Google Analytics.....

     

    looking for some more article on this...

     

    Thanks!

  42. Vitaly Veksler

    11:12PM on 15th August 2010

    Avatar-blank-50x50

    Excellent discussion topic. We've recently launched SocialReport.com a tool that focuses on social tracking just like Google Website Analytics focuses on website tracking. Simple and clean, easy to setup. More info here http://www.socialreport.com

  43. we are cloud

    1:42PM on 17th August 2010

    Avatar-blank-50x50

    We thought this was a really good blog post - so good, in fact, that we referenced it in our post entitled "9 resources explaining when to use segmentation or filters in Google Analytics". You can find the post at http://analytics.bimehq.com/ if you're interested to read it!

  44. R Govindan

    10:27AM on 18th August 2010

    Avatar-blank-50x50

    Pretty neat. I wish GA could provide more insight about other social media with its sentiments tracking.

  45. What Is My IP Address

    5:15PM on 20th August 2010

    Avatar-blank-50x50

    Thank you so much. Now I have a question. Is there anyway to pull all the recent data from my main profile instead of just start tracking since I created the second profile (social networks) ?? Thank again.

  46. madkeet

    4:04AM on 10th September 2010

    Avatar-blank-50x50

    Good stuff, only wish i knew more.............. about this analytics stuff.

    Any instructions to follow your instructions ?

    I think a trip to GOOGLE is needed

  47. Phillip Evans

    10:21AM on 13th January 2011

    Avatar-blank-50x50

    Great article - option 2 worked straight away for me. Many thanks for releasing this out to us all.

  48. Emma Bradfield

    10:51AM on 16th March 2011

    Avatar-blank-50x50

    Hello

    Great article but I'm having trouble with Option 1.

    Would someone be kind enough to clarify to which website profile(s?) the 3 filtered are added - are all three applied to the social networks profile?

    Thank you in advance!

  49. Emma Healey Gold

    Marketing & PR Executive at Abel & Cole

    1:07PM on 28th March 2011

    Avatar-blank-50x50

    Hi there,
    Thank you for this, i've been searching for how to split social media and compare to site, so this is great.
    I've followed option 2 so far, but wondered if I could see the new vs returning revenue split for facebook vs twitter all in one report? rather than grouping twitter and facebook (or all those social media channels) into one lump?
    Thanks! Emma

  50. seo

    4:29PM on 23rd May 2011

    Avatar-blank-50x50

    Great article - option 2 worked straight away for me. Many thanks for releasing this out to us all..

  51. Diego

    9:30AM on 5th July 2011

    Avatar-blank-50x50

    Hi all!

    I've been happily using option 2 for a while until recently, and have been using an advanced segment entirely for Facebook. Now, it's stopped working.

    I've tried to fix the issue, but nothing is working.

    Can anyone help at all?
    Thanks!

Enter your comment below



Your email address will not be published
optional
Your name will link to this URL

No HTML please