HOW-TO: Tag Social Media Links for Google Analytics
Filed under: Google, Social Media, Surveys and stats, Tools, Top10
A month ago I wrote about measuring your social media success with Google Analytics. This post proved very successful and got a lot of feedback. However there’s a little “but” with analyzing visitors from social media by referrers. Stéphane Allard pointed out in comments that a lot of visitors use desktop or mobile clients. These social media visitors will register as direct traffic in Google Analytics.
In our website we estimate that more than half of visits from Twitter are shown as direct traffic. As you can see from the image, when we had a peak in Twitter then direct traffic grew more than referrals and we saw only 8 percent of visitors coming from Twitter. To find out more about this read Thomas Baekdal’s Don’t Trust Your Social Referral Data.

However there’s a way to register those visits as non-direct if you add special Google Analytics tags to the original link. Below is the link tagging tool that lets you tag all the links you put into social channels. This ensures that you know where visitors are coming from.
Here’s a step by step guide how to tag your links for social media sites (this can also be used for other sites and email).
You are done! Now when people click on the link you created it will not be logged as direct traffic even if they do it in the desktop clientAdditional information about the fields
Media Channel (utm_source)
Required field. utm_source tag defines the channel where you put the link. Media channel can be various social networking sites, web portals, email, etc. You can see the results of this tag in Traffic Sources report. Example: utm_source=Facebook, utm_source=Twitter, utm_source=OurNewsletter
Media Type (utm_medium)
Required field. utm_medium tag lets you define in what form the link is presented. Media Type can be statusupdate, tweet, email, etc. The default media types in Google Analytics are organic and referral. Example: utm_medium=tweet, utm_medium=textad, utm_medium=email
Keyword (utm_term)
Not required. Use utm_term if you want to differentiate between links that are shown in searches for specific keywords. Google Adwords does this automatically. This tag is needed for search advertising where the search engine itself does not tag the links. Example: utm_term=product1, utm_term=service2
Content (utm_content)
Not required. Use utm_content for different links that are in the same media channel. If you tag links for Twitter then the channel and type are always the same but the content changes. You can see what content generates the most clicks from Google Analytics Traffic Sources > Ad Versions report. Example: utm_content=GAtweet, utm_content=FBtweet
Campaign Name (utm_campaign)
Required field. Use utm_campaign tag for different campaigns to give you a better overview of what media channels and types are related to your different activities. A campaign can be Blogging, Newsletter001, FacebookPromo, etc. You can see how your campaigns are doing in Google Analytics Traffic Sources > Campaigns report. Example: utm_campaign=Spring11, utm_campaign=RegularBlogging, utm_campaign=Email01
Posted on: May 31, 2011
Related Posts
-

Measuring Your Social Media Success with Google Analytics
I am a bit of a stats nut. If not interrupted I can play with stats forever. But for people less obsessed with numbers here's something that might...
-

Outbound Links are Gold
Few days ago I looking how to measure your social media success with Google Analytics. Today I was looking for ways to understand our website...
-

Avinash Kaushik Reviews Social Media Analytics Tools for Twitter
Avinash Kaushik reviews some social media analytics tools. Four Twitter analysis tools to be exact. As usual he's pretty outspoken about tools that...
-

Web Analytics Vendor Tools Comparison by Avinash Kaushik
This video from Avinash Kaushik dates back to 2007 but I think it still helps to get a general overview of the analytics tools. Avinash writes -...
Social media &
Great article Priit! Very useful!
Thanks, Stef!
This is what I call a value-add post. Thank you, such great information.
Thanks, Sherry!
wow, interesting and disturbing – shows you can’t just assume the all powerful google analytics are telling the truth ALL the time
Thanks Daniel! Google Analytics wasn’t designed for these devices. The information itself is correct but lacks granularity.
Hi Priit,
This post used to contain a URL conversion tool but it seems to have disappeared. Will it be coming back??
Sorry about that Lea and thank you for letting us know. The new site design has broken some stuff. We fix it ASAP.
Thanks,
Priit
great stuff. Love it when its all in one short article.
Pingback: 9 consigli utili per far crescere il proprio profilo Twitter | Viralbeat
Hi,
Thanks for this, I’ve been using the URL builder for a while and it works great. But I have never used it for tweets. You say that tweets from desktop clients register as direct, I have recently switched from owl.ly to using bitly to monitor tweets, do you know if these bitly links also show up as direct?
Roisire, we use tagged URLs and shorten them with bit.ly. The visits will apear under traffic sources > campaigns.
Great information, short but helpful. Thanks for sharing Priit.
Well idea really it’s great i tried i am getting good traffics..