Twitter and Google Analytics: What to Track

September 2, 2008 by Justin Cutroni

A couple of weeks ago I decided to start Twittering. I’ve had a Twitter account for a while, but never really got into it. But after observing some friends for a while, and reading up on how others use Twitter, I started to see some value in the service.

One thing I’ve noticed is the amount of promotion done with Twitter. Whether it be self promotion, like me promoting a blog post, or corporate promotion, like a sale, people are driving traffic to websites using tweets (posts on Twitter). Check out how CNN is driving traffic to their Political Ticker blog using Twitter.

Here’s another great example that was mentioned on the GokDotCom blog. Bryan Eisenberg found a t-shirt coupon posted as a tweet and passed the information on to his coworkers. Here’s the original tweet that Bryan read and sent on via email (I assume he used email):

Who wants a FREE $50 gift code? Here it is: TLTW7897 First come, first serve - and all tees are ON SALE FOR $12!! http://tinyurl.com/yqe9f

This got me thinking, how are people tracking Twitter as a marketing activity using Google Analytics?

Default Tracking Method

By default, traffic from Twitter will be tracked as referral traffic in Google Analytics. if someone clicks on a link to your site from a tweet you will see ‘www.twitter.com’ in the Referrals report.

This data will give you a basic idea of how much traffic your tweets are generating. It’s good, but there is an issue.

What happens if your tweet gets passed along to others, as it did in Bryan’s case? Bryan’s co-workers never clicked on a link at twitter.com, they received a link in an email. How can we identify these visitors as coming from Twitter and not an email?

Preferred Tracking Method

A better way to track a Twitter campaign would be to use GA’s campaign tracking feature. This method will track anyone visiting the site as a result of your tweet, regardless of where they clicked on the URL. It doesn’t matter if it’s in an email client, hosted email app. etc.

Here’s how to make it happen.

Most tweets that include a URL use some type of URL shortening service, like Tinyurl.com. This service shortens a URL by creating a redirect that is hosted on www.tinyurl.com.

The cool thing about Tiny URL is you can add GA’s campaign tracking parameters to your Tiny URL, thus encoding campaign info into the URL you use in your tweet. When someone forwards your tweet using email the tiny URL will contain campaign info identifying the visitor’s source as your Twitter campaign.

This is the secret to tracking tweets with GA: adding campaign information to your tiny URL.

Here’s an example. Here’s a tweet that I posted with a link to this blog:

Help me test tracking Twitter with Google Analytics: Please click on this link http://tinyurl.com/5eyfjo

I added GA campaign parameters to the Tiny URL in the tweet above. If you click the tiny URL in my tweet you get this URL:

http://www.epikone.com/blog/?utm_campaign=blog& utm_source=twitter&utm_medium=micro-blog

The campaign information in the URL will bucket the visitor as part of the blog campaign and as someone who was reached by the ‘micro-blogging’ medium. Here’s how the data looks in the All Traffic Sources report:

There it is in all its glory. But let’s dig deeper. I’m really interested in knowing how people are using Twitter. Are they on their mobile (like me) or PC? This can have a big impact on how they interact with my tweet. Let’s segment the tweet by OS:

7 of 25 users are on the iPhone, interesting. I know that I’m an iPhone user and it’s one of the only reasons I twitter. It’s just easy on the iPhone! :)

So if you’re using Twitter to drive traffic to a site:

1. Always use a Tiny URL
2. Always add Google Analytics campaign tracking information to your Tiny URL

If you’re unfamiliar with campaign tracking you may want to check out these posts:

Google Analytics Campaign Tracking Pt. 0: An Overview
Google Analytics Campaign Tracking Pt. 1: Link Tagging
Google Analytics Campaign Tracking Pt. 2: The EpikOne Link Tagging Tool

Update: You can use a number of URL shortening services such as TwwetBurner and SnipURL. Both of these services also provide some basic reports on the number of clicks your shortened URLs generate.

Good luck!

Share:
  • Digg
  • Technorati
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • Ma.gnolia
  • YahooMyWeb
  • co.mments
  • Reddit
  • Facebook
  • SphereIt
  • TwitThis
  • Yahoo! Buzz
Subscribe:
  1. 65 Responses to “Twitter and Google Analytics: What to Track”

  2. Justin,

    Thanks for the link to our twitter story. To confirm, I did email the link to the rest of my staff. However, I’ll often retweet something I find interesting and of course this tracking method would be helpful to that as well.

    I actually only use twitter on my Mac.

    Best wishes,
    Bryan

    By Bryan Eisenberg on Sep 3, 2008

  3. Thanks for the confirmation Bryan. My pleasure linking to your post, you guys always publish such great content.

    Justin

    By Justin Cutroni on Sep 3, 2008

  4. This is great, but i’m wondering how you track Twitter content like an automated RSS feed, which can be set up using something like TwitterFeed?

    By Qiana on Sep 3, 2008

  5. Hi Qiana,

    I have not worked with Twitter feed before, but my understanding is that TwitterFeed rebroadcasts your site RSS/ATOM feed to Twitter. So anything you post to your blog gets added to Twitter.

    I don’t think the info in this blog post would help much in that scenario. The technique above is really to measure how a twitter campaign can drive traffic to your site.

    You could still use the technique in this post, but I think you’re talking about two distinct marketing mediums: a blog and Twitter.

    I am by no means an expert at TwitterFeed, so please feel free to enlighten me if you’re using it!

    Thanks so much for the comment,

    Justin

    By Justin Cutroni on Sep 3, 2008

  6. Justin, this is a great tip. Simple and easy for anyone to do. I was reluctant at first regarding twitter, but like you said, after a little research I saw the value in it. Its a “virtual watercooler”. Good stuff.

    By Ernesto Gluecksmann on Sep 3, 2008

  7. Thank you for the post. I’ve been wanting to set up this type of tracking for a while. I had done something similar with email marketing campaigns.

    By Jeff Tincher on Sep 3, 2008

  8. Hi I use http://www.tweetburner.com to track my links which I share via Twitter. They have a nice tool which is easy to use.

    regards,

    Verwee

    By Verwee on Sep 3, 2008

  9. Thank you for sharing Verwee. I updated the post to indicate that the link tagging technique can be used with TweetBurner as well.

    The advantage to tagging your links is that you will be able to measure conversions from Tweeting, not just traffic.

    Thanks for the comment,

    Justin

    By Justin Cutroni on Sep 3, 2008

  10. Using Twitter as a web marketing way isn’t new to me, but adding a tinyRUL and/or tracking parameters is a great idea. I’m sure I’ll implement it some day. Thanks!

    By Girl 2.0 on Sep 10, 2008

  11. Very interesting, this post. Never thought of analysing the Twitter traffic to this extent.

    I’m not sure if it’s worth the trouble of manually adding tracking parameters though. Did you find it gives you any interesting insights to the reading habits of your Twitter followers?

    By limeshot on Sep 12, 2008

  12. limeshot,

    The value of this technique lies in the viral nature of a tweet. If actweet is removed from Twitter and send to others thisctechnique will always attribute traffic and conversions to the Tweet.

    If you’re not worried about tracking those that may receive your Twitter marketing via email then you can just monitor your Twitter traffic as referral traffic.

    Thanks for the comment.

    Justin

    By Justin Cutroni on Sep 12, 2008

  13. Good point. I started tracking my URL posting on Twitter from today. Works great.

    Anyone wanna add me: MathieuSEO

    By Mathieu Burgerhout on Sep 16, 2008

  14. Oh thats a nice piece of info about Twitter+ Google Analytics. Let me try this out and see it works……..

    Regards,
    FourPx

    By FourPx on Oct 10, 2008

  15. Great idea for tracking posts to twitter and elsewhere. Somewhat similarly, you can also create a filter in Google Analytics to have it provide full referrer data. I’m not quite sure what kind of referral URL comes from Twitter as I’ve only just created a filter to do this. :)

    By Matt on Nov 14, 2008

  16. This is a nice tool to help everyone out build those urls (might be an idea to add to original post)

    cheers

    Kenny

    By Kenny on Dec 8, 2008

  17. edit - forgot link

    http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55578

    By Kenny on Dec 8, 2008

  18. We’ve been using this for awhile now. Great article and I suggest this for EVERYONE who uses social media to promote their website.

    By internet marketing secrets on Dec 18, 2008

  19. Is there any reason, TinyURL would obscure utm codes from Google? We tested a TinyURL link with utm codes on one site and Google tracked it successfully. We did it again with another site, and it never registered with Google.

    By Jason on Feb 9, 2009

  20. Hey Jason,

    Based on my experience, no. TinyURL should not strip off the campaign tracking parameters. I would take a look at the site. My guess is that there is a problem with the site stripping off the parameters or doing some type of redirect.

    Hope that helps,

    Justin

    By Justin Cutroni on Feb 11, 2009

  21. an alternative for greasemonkey users i advocate is to use the excellent script that combines the google analytics url builder and the is.gd url shrinker:
    blog.avangate.com/twitter-analytics-love/

    By paul gailey on Feb 20, 2009

  22. Will this still work if I shorten the url using Hootsuite? I like the HS feature that allows you to set tweets to send later, but still want to be able to track the hits in Analytics. I’ve heard that because of the way ow.ly works, Analytics can’t track it correctly — because it is a “temporary” redirect, rather than “permanent” like tinyurl. Is that true?

    By Felicity on Apr 6, 2009

  23. Felicity,

    I’m not sure about How.ly. I’ve never used that service, but as long as it passes the person on the the URL you specify then the campaign parameters should persist.

    Thanks for the question,

    Justin

    By Justin Cutroni on Apr 16, 2009

  24. Justin,

    I put together a little firefox sidebar add-on that helps facilitate adding campaign tags to Twitter links. See if it simplifies the process a little bit.

    https://addons.mozilla.org/en-US/firefox/addon/11492

    Cheers,
    Tyson

    By Tyson on Apr 18, 2009

  25. Thanks Tyson! Now can you tweak it so I can link my Tr.im account?

    Justin

    By Justin Cutroni on Apr 20, 2009

  26. Justin,

    I will sure add that to the feature list and work it in. Thanks for the suggestion!

    Tyson

    By Tyson on Apr 21, 2009

  27. Felix,

    Thanks for the comment. But I’m not really sure what you’re asking. Do you mean you want to track traffic coming from your RSS feed to your site?

    Justin

    By Justin Cutroni on May 20, 2009

  28. Justin,

    Snip-n-Tag 1.5 is out, and you can now use your own tr.im or bit.ly account. Also, it now supports tag-only and shorten-only behavior.

    Cheers,
    Tyson

    By Tyson on Jun 2, 2009

  1. 38 Trackback(s)

  2. Sep 3, 2008: Twitter Analytics | Web Analytics News
  3. Sep 3, 2008: SearchCap: The Day In Search, September 3, 2008
  4. Sep 3, 2008: Twitter e Google Analytics | Posting IT
  5. Sep 9, 2008: Web Analytics Resources | Online Marketing | Search Engine Marketing | SEO | PushON blog
  6. Sep 9, 2008: Measuring Twitter | Internet Marketing for Real Estate
  7. Sep 10, 2008: Daily Post to RED66 09/11/2008 | RED66
  8. Sep 13, 2008: Weekly Bookmark Digest on RED66 (weekly) | RED66
  9. Oct 6, 2008: Monday Links: Greeking, Linking, Fishing, Social, Mobile & Engagement | Online Marketing Blog
  10. Oct 6, 2008: Monday Links: Greeking, Linking, Fishing, Social, Mobile & Engagement | Blogging
  11. Oct 6, 2008: Monday Links: Greeking, Linking, Fishing, Social, Mobile & Engagement | Blogging
  12. Oct 6, 2008: Monday Links: Greeking, Linking, Fishing, Social, Mobile & Engagement | Blogging
  13. Oct 7, 2008: Monday Links: Greeking, Linking, Fishing, Social, Mobile & Engagement
  14. Oct 16, 2008: The Ultimate Google Analytics Plugins, Hacks & Tricks Collection
  15. Oct 23, 2008: Collection Google Analytics plugins, hacks and tricks « Web Analytics Tips - Knowldge sharing board
  16. Oct 26, 2008: Small Biz Internet Solutions» Blog Archive » The Ultimate Google Analytics Plugins, Hacks & Tricks Collection
  17. Oct 29, 2008: e-businessleader.com » Monday Links: Greeking, Linking, Fishing, Social, Mobile & Engagement
  18. Oct 29, 2008: Google Analytics verbessern mit diesen 12 Top Tools | Webdesign | News | Rock 'n' Roll
  19. Nov 1, 2008: Google Analytics Hacks, Tips und Plugins | Eric Merten Web Developer
  20. Nov 3, 2008: Redes sociales y analĂ­tica web - Onetomarket Blog
  21. Nov 9, 2008: Io, Twitter e l’iPhone
  22. Dec 8, 2008: It is a TinyURL World | The Get Smart Blog
  23. Jan 16, 2009: How to measure Twitter traffic | BloggerSavvy
  24. Feb 8, 2009: Track your tweets | u-ska
  25. Feb 22, 2009: Tracking Twitter Links: Twitter Analytics Tools & More | rossboardman.com
  26. Feb 23, 2009: 6 ways to track your link clicks on twitter - FiddyP
  27. Feb 25, 2009: The Missing Google Analytics Manual | FutureNow's GrokDotCom / Marketing Optimization Blog
  28. Mar 11, 2009: Segmenting Twitter Traffic in Google Analytics | Conversion Counts Blog
  29. Mar 13, 2009: Tracking referers to your website from Twitter clients with Google Analytics | David Simpson
  30. Jun 20, 2009: Rastreando visitas do Twitter com o Google Analytics | Thiago Belem / Blog
  31. Jul 16, 2009: A Guide to Google Analytics and Useful Tools « Tech7.Net
  32. Jul 23, 2009: Everything You Ever Wanted to Know About Google Analytics - Birdsall Social Media
  33. Jul 24, 2009: A Guide to Google Analytics and Useful Tools | Brainless Web
  34. Aug 28, 2009: Tracking Twitter Links: Twitter Analytics Tools & More « Site2Next
  35. Sep 14, 2009: Twitter Analytics – Advanced Twitter Metrics | Ben Foster | @benphoster
  36. Oct 10, 2009: A Guide to Google Analytics and Useful Tools « Smashing Magazine
  37. Oct 18, 2009: 30+ Google Analytics Plugins, Hacks & Tricks
  38. Oct 27, 2009: The Portability of Content: Implications on Usage, SEO and Tracking
  39. Nov 17, 2009: A Guide to Google Analytics and Useful Tools « Vibbit Social Networking and Website Design for Under 89.00

Post a Comment