How to Track Twitter Clicks and Get Conversion Data

How do you track what links are being clicked on on Twitter? Today Hendry Lee (follow him at @hendrylee) shares some tips on how to do it.

how-to-track-clicks-on-twitter.pngMuch of Twitter is about communication with your peers and meeting new people. I’ve seen many social media marketers claim that in fact conversation is the only thing that matters in Twitter.

I won’t go into detail about it in this post, but no matter what people say, marketers can only track numbers. And without tracking, there is no way to measure how effective social media is to your business.

Based on the latest data from Hitwise, Twitter still continues to grow despite outages and other issues. Nielsen reported in October 2008 that Twitter is growing as much as 343% in 12 months.

Twitter’s growth and the ability to drive traffic via Twitter is two different things, but Jason Calacanis, for instance, blogged that Twitter was sending over 20,000 people a month to his web site Mahalo.com.

With that, I bet all marketers, webmasters and publishers will agree that they should take a very serious look at Twitter, especially if they want to tap into new source of audience and engage those users as part of their marketing activities.

The Problem with Tracking Traffic from Twitter

Before I start, let me elaborate a bit about the challenge for tracking Twitter. Feel free to skip this section if you already know it.

One of the greatest things about Twitter is the ability to post and receive updates from different medium, applications and devices. That makes it possible for Twitterers to engage in conversations no matter where they are and without disturbing their work flow too much.

With the flexibility comes the problem though. If your followers click on the link in your tweets to visit your site — in a browser, it leaves a trail. In HTTP, that trail is the Referer header.

A click on a tweet from the Twitter.com web site actually has the browser generate this as part of the HTTP request header:

Referer: http://twitter.com/hendrylee?page=6

By tracing the log file, using log analyzer such as Awstats (available via most web hosting control panel), or web stats package, you will be able to see exactly from which site or page your traffic comes from.

However, it doesn’t tell the whole story for the following reasons:

  • Lack of Referer header for traffic from other Twitter clients. Desktop- and phone-based Twitter clients are popular. According to TweetStats, web accounts for about 51% of the whole Twitter apps, so where do the stats for the 49% go?. When someone clicks on your link, it will not carry the Referer header. Your log file and web stats are more likely to track this as direct traffic.
  • Syndicated Twitter feed displays the wrong Referer information. As Twitter also has RSS feed, web publishers can syndicate it easily on their web sites, blogs, FriendFeed or even Facebook accounts. When someone clicks on the link in the tweet, the header contains a Referer line, but from the other web sites instead of Twitter.
  • It doesn’t track traffic from RSS feed. If your followers decide to follow via RSS in their news readers, or if they subscribe to a keyword-search query via RSS, and then happen to click on the link in the tweet, it will be tracked as either direct traffic — if from a desktop RSS reader, or as traffic from online RSS reader in the Referer line.

How’s that for accuracy? If you are not yet tracking your Twitter traffic, chances are you underestimate the number of visitors that come as the result of your tweets.

Simple Approach to Tracking Twitter

The first solution is very simple. Use URL “shortener” service that supports tracking. Tweetburner is one of them.

Tweetburner

Here are a few benefits of using such service:

  • Desktop Twitter clients support it. twhirl and TweetDeck allow you to generate short links from the same interface directly. And that makes the process much quicker. Remember about the flow thing I mentioned above?
  • It happens automatically. You don’t have to add anything. Once you use Tweetburner (twurl.nl), logging in your account shows you some interesting stats such as clicks, who also shares the link, and referrers of the link. The latter is the sites that syndicate the tweet with the link.
  • Track all sources of clicks. Tweetburner solves the issue I explained above regarding Twitter tracking because wherever the tweets appear, any clicks on the link will be tracked.

Another service called cligs features other information such as geotargeting. It is also search engine friendly, i.e. using 301 permanent redirect.

Although it doesn’t give you any information beyond clicks, at the very least you know how effective your tweets are.

Tracking Twitter Clicks with Google Analytics

Most Javascript-based web stats have this feature but for this example I use Google Analytics because it is one of the most powerful and free web stats packages. If you use a different solution, check to make sure this feature exists and how to use it.

Google Analtyics has a feature called URL tagging. With it, you are able to track any online campaigns. The following is a list of accepted variables:

  • Source (utm_source). The origin of a referral to a web site. When someone clicks on your web link in Google search result page, Google is the source.
  • Medium (utm_medium). Together with source, they provide specific information about the origin of a referral. If you use AdWords to drive traffic from Google, the source is Google and medium is pay per click or adwords.
  • Campaign (utm_campaign). The dimension that differentiates product promotions such as “Valentine Sale.”
  • Term (utm_term). Keyword that is used to find your page via the search engines.
  • Content (utm_content). Content describes the version of an advertisement, usually used in content-targeted advertising and a/b split testing.

For tracking Twitter, we only need the source, medium and campaign dimensions.

You can integrate Google Analytics tags into your URL quite easily with one of the following methods.

The first method is by using Google Analytics URL Builder. It is a simple form that walks you through the necessary fields and generate tagged URL.

Google Analytics URL Builder

Insert the Website URL into the first field and then fill in the source, medium and campaign with “twitter” (without the quotes) or with any unique name that you’d like to assign to track Twitter clicks. Finally hit the Generate URL button to get your tagged link in the field below the button.

Chances are this URL is too lengthy to be used in Twitter. As usual, all you need to do now is shorten the URL with your favorite URL shortening service. Note that if you follow this method, you can use any of your chosen service.

Let’s make it easier. The second method is by using bookmarlet. A bookmarklet is a small Javasript application that is stored as a bookmark in your browser. If you put it in the bookmark toolbar, the service is just one click away.

When clicked, this bookmark will take URL of the active window/tab, add Google Analytics tags, generate a short URL with twurl.nl and add it to the form, ready to be posted to either Twitter or FriendFeed.

javascript:var%20xnSD366z='http://tweetburner.com/links/create?url='+escape(location.href);if(location.href.indexOf('?')>0){xnSD366z+=escape('&')}else{xnSD366z+='?'}xnSD366z+=escape('utm_source=twitter&utm_medium=twitter&utm_campaign=twitter');window.open(xnSD366z,'_blank','width=500,height=320,scrollbars=yes,resizable=yes,status=yes,toolbar=no,location=no');xnSD366z.focus();

Cligs also has a bookmarklet that you can adapt to include the above Google Analytics tags. Unlike Tweetburner’s bookmarlet above, it only displays a short URL with options to post to Twitter or identi. Here is the modified cligs’ bookmarklet code, for your convenience.

javascript:(function(){var%20Awg12UDv='http://cli.gs/cligs/new?url='+escape(location.href);if(location.href.indexOf('?')>0){Awg12UDv+=escape('&')}else{Awg12UDv+='?'}Awg12UDv+=escape('utm_source=twitter&utm_medium=twitter&utm_campaign=twitter');window.open(Awg12UDv+'&title='+encodeURIComponent(document.title));})();

Create a new bookmark with the code as the location.

Much easier, right? The drawback of this method is, you can’t assign a different campaign to the tag as easily as using the URL builder tool.

If you often need to customize the utm_campaign variable, use the following bookmarklet instead.

For Tweetburner:

javascript:var%20xnSD366zCampaign=window.prompt('Enter campaign name','twitter');var%20xnSD366z='http://tweetburner.com/links/create?url='+escape(location.href);if(location.href.indexOf('?')>0){xnSD366z+=escape('&')}else{xnSD366z+='?'}xnSD366z+=escape('utm_source=twitter&utm_medium=twitter&utm_campaign=');xnSD366z+=escape(xnSD366zCampaign);window.open(xnSD366z,'_blank','width=500,height=320,scrollbars=yes,resizable=yes,status=yes,toolbar=no,location=no');xnSD366z.focus();

Cligs:

javascript:(function(){var%20Awg12UDvCampaign=window.prompt('Enter campaign name','twitter');var%20Awg12UDv='http://cli.gs/cligs/new?url='+escape(location.href);if(location.href.indexOf('?')>0){Awg12UDv+=escape('&')}else{Awg12UDv+='?'}Awg12UDv+=escape('utm_source=twitter&utm_medium=twitter&utm_campaign=');Awg12UDv+=escape(Awg12UDvCampaign);window.open(Awg12UDv+'&title='+encodeURIComponent(document.title));})();

Either of them will prompt you for the campaign name before shortening the tagged URL.

Note: Those bookmarklets have been tested with both Firefox 3 and Internet Explorer 6. Due to how WordPress format the links, it is impossible to provide drag and drop links for the bookmarklet without modifying WordPress code. This page provides the drag-and-drop version of the bookmarklets though.

Everytime you stumble on a page that you want to tweet, click on the bookmark. Now the shortened URL will carry the Google Analytics tags.

That’s it. Google Analytics will automatically detect those tags and display the report showing how many clicks occur from Twitter. The number includes clicks from Twitter web site (your profile page), any Twitter clients, syndicated feed in FriendFeed, Facebook or even other people’s web sites.

Taking It to the Next Level with Funnel Visualization and Goals

Let’s say that you have a specific campaign to drive traffic from Twitter. The campaign is to generate leads for your business by offering a white paper download. Isn’t it nice if you are able to not only track clicks, but also the number of those visitors that register? What if you can track the percentage of visitors from Twitter that abandon the page and never see the sign up form — presuming the landing page is not the registration page?

The good news is, you can.

Goals and funnels in Google Analytics allow you to do exactly that. The detail about how to do this is out of the scope of this post, but you can find more information from Google Analytics Help pages.

Let me summarize the steps you need to take to get this kind of information though:

  1. Create a landing page, intermediary pages, and goal page. If your web content management system doesn’t include the Google Analytics tracking code on those pages, you should insert it on every page manually.
  2. Setup funnels and goals. A funnel is a series of pages through which a visitor must pass before conversion. A goal is the destination page a visitor must land on to assume conversion.
  3. Tag the landing page with source, medium, and campaign tags.
  4. Shorten the URL. Use the above tool to speed this up. It allows you to do the third and fourth steps with one click.
  5. Use the short URL in your tweets.

That’s it. Now you are able to funnel visualization, conversions, conversion rate, abandoned funnels and even goal value if you enter it while setting the goals and funnels in the second step above.

If you use one of the URL shortening services above, you also get the analytics data from those services besides Google Analytics’ report.

Conclusions

Now that marketers begin to understand Twitter, and with the growth of the micro blogging platform itself, marketers and web publishers are starting to generate significant traffic from Twitter. With the above method, you will be able to at least track how many clicks are coming from Twitter beyond those from Twitter’s website. That means you are able to track clicks from syndicated Twitter RSS feeds, from desktop- and phone-based clients, and others as well.

By setting up funnels and goals in your Google Analytics account, you will also be able to get user behavior and conversion data. With those numbers in hand, marketers can now measure the effectiveness of their campaigns and know where to spend their money and effort on.

Final note: Still related to tracking, I’ve created a WordPress plugin that makes in-content RSS links trackable with Google Analytics. Currently FeedBurner only tracks clicks on the item title. When you create a blog post as part of a larger promotion, clicks on the call to action and other links within RSS feed — as a separate campaign — are not properly tracked. The plugin, which I called RSS Feed Campaign Tagger uses the same method I explained above to track links within your RSS feed.

Hendry Lee helps bloggers overcome strategic and technological challenges in starting and growing their blogs. He also writes about social media tips on his blog Blog Tips for a Better Blog – Blog Building University. While you are there, download your free eBook and subscribe to the blogging e-course where he reveals his secret about blogging and content writing!

Follow Hendry on Twitter (@hendrylee).

Comments

  • January 23, 2009

    Interesting. Tweeted. Dowloaded the plugin.

  • January 23, 2009

    This is a great post. I was already aware of Tweetburner’s tracking but had no idea about the Google Analytics integration. Thank you so much!

  • January 23, 2009

    Great article, but I thought I would mention a new one that has come out called TwitClicks.com. Check it out. No, it isn’t my site, but I do know the guy behind it. :)

  • January 23, 2009

    It’s cool to know the “tweaks”, but the results are yet to be convincing I guess.

    - Wakish -

  • January 23, 2009

    Hendry,

    What a wealth of information – Using Google Anaytics… good idea!

    The funnels and goals is the way to go to track… a bit too technical for me, but with patience, this will work!

    Cheers!

  • January 23, 2009
    Alan Rohrbach
    @MacroMeister

    Thank you; Thank you; Thank you. I am in the process of trying to convince some cohorts of the value of a Twitter/blog/website combination for an engagaing marketing approach, and some of them are having a problem visualizing that. Your focus on funnel & goals articulation will be very useful.

  • January 23, 2009

    Truly a wealth of information. I’m pleased with how well you’ve broken it down, too, so that it’s easy to understand. Though provoking, for sure. Thank you!

  • January 23, 2009

    Great post. Upon reading it, I checked the info for a bunch of sites I tweeted using the bit.ly shortening site, and sure enough, it shows traffic to my site that my WP Stats plugin couldn’t place.

    Thanks for the tip!

  • January 23, 2009

    Noobpreneur,

    Google documentation, which I link to in the above post, has all the information that you want.

    Basically you just fill in your thank you page and optionally the funnel pages in your Google Analytics profile.

  • January 23, 2009

    Very well put together article, Hendry – I’m bookmarking this one! Good use of tweetburner and cli.gs – what’s funny is that you did not mention bit.ly in the analysis, though twitip.com’s “tweet this” link uses bit.ly :)

  • January 23, 2009

    Very neat! I use http://twurl.cc, which keeps track of clicks if you sign in with an OpenID, and I never thought about tracking usage of my website by Twitter users only. I will definitely have to look at the Google Analytics tools that you showed above; truly a great idea!

  • January 23, 2009

    Hi good pots its great bou i am dum or something like that becuase i dont get the pointo of do this part: Tracking Twitter Clicks with Google Analytics” i did the one of google analytics but i dont know were to please the link the information that he gives am blue.

    But was a good pots becuase for real in the stats i dont see the real informacion from were twitter users are coming form.

  • January 23, 2009

    Hector, if I got you correctly, you want to use the bookmarklet?

    If so, just create a new bookmark on the bookmark toolbar and use the code as the location. By clicking the drag and drop version you will be able to drag the link and drop it to the bookmark toolbar without copy and paste.

  • January 23, 2009

    Tnan you for the answer.

  • January 23, 2009

    you may also want to check out BudURL.com. Real-time click tracking with analytics including IP, City/State, Referrer, Keywords, and more. Would love your feedback!

    Thanks,

    Andy

  • January 23, 2009

    I think “THE” easiest way to track your clicks is via bit.ly all you really have to do is change your url to bit.ly short url and then after that u can check how many clicks u have from different parts of social networks not only twitter.

    Remember if you post links to twitter your links also end up on websites such as twitturls.com or email clients , because people get responses via email as well.

    Great post Hendry.

  • January 23, 2009

    This is incredibly useful! Great work Hendry.

  • January 23, 2009

    I also just read about Bit.ly (a link shortening service) which tracks URL’s and shortens the URL even more than Tiny URL. With the 140 character limit on Twitter every bit of space saved helps.

    http://www.peiprofit.com/making-money-online-with-blog/16-twitter-tools-twitter-fanatics

    Worth a look as well.

    @Henry: Are you familiar with this Bit.ly?

  • January 23, 2009

    This is a wonderful post every twit should read and get the basics of tracking clicks.

    Thank you.

  • January 23, 2009

    Brian, Livecrunch, I’ll take a look into bit.ly. I’ve seen it used quite often but this article has been going a bit longer than I expected. While those are nice, if you want funnel and conversion data, Google Analytics is still “THE” way to go. :)

  • January 23, 2009

    Nice. Saw something similar on Yoast the other day but this article offers a couple of non-GA options too.

    Thanks!

  • January 23, 2009

    I started out using the URL shortener from TinyURL to minimize characters, but it seems like tweetburner may be a better option, to actually get results on how many clicks and such.

  • January 23, 2009

    I really need to spend time learning how to utilize Twitter. Thanks for the post Hendry!

  • January 23, 2009

    Very useful post with steps clearly set out so that even a non-techie like me can apply them. Have been using bit.ly for a while but your blog has helped me to see that Google Analytics is definately the way to go.

  • January 23, 2009

    Missy, cli.gs has the exactly the same number of characters as bit.ly, and it is covered above. :)

    If you don’t care about analytics, I use is.gd which is even shorter.

  • January 24, 2009

    great article always good to see encouragement of google analytics campaign taggin!

    ive just started using this little url shortner >> http://urlzen.com/

    it gives you a whole lots of stats broken down such as xxx Clicks from xx Domains
    twitter.com
    twitturly.com
    twitturls.com
    search.twitter.com

  • January 25, 2009

    I can tell I am going to spend a lot of time rereading this post and Hendry’s blog this weekend. This is great stuff!

  • January 26, 2009

    That was a nice post. I got to try the Bookmarklet thingy soon :)

  • January 27, 2009

    I think the simple Solution Like Tweetburner will be ok for me and other Less Tech People.

  • January 30, 2009

    great list, I have been trying to find unique ways to use the information from twitter traffic and pull different feeds. Some are easier than others, I just wrote an article about how to pull an rss favorites feed http://tinyurl.com/dksboo (sorry for the self plug). I was surprised how easy it was and you can pull anyone’s favorites into a feed with just a simple url. Great post, thanks.

  • February 7, 2009

    nice step by step guide helpful for non technical person also

  • February 8, 2009

    This is incredibly useful for me!!!! Great work Hendry.

  • February 19, 2009

    Here is another solution for URL shortening/link stats: “Roll your own” Tinyurl using a Wordpress install:

    http://3on.us/your-own-tinyurl

  • April 1, 2009

    Hi, thanks for the great article.

    Question: For Tracking Twitter Clicks with Google Analytics, where do I track it in my Google Analytics account? I’ve used the bookmarklet in the other page, that does a Custom pop up.

    But when I go to my Google Analytics account I don’t see the campaign there.

    Thanks!

  • April 1, 2009

    @shenheng,

    In the Goals section.

  • April 26, 2009

    All the url shortening statistics are wrong: If you compare it to google analytics (i’ve been using a bookmarklet like in the above post for some months now) you will see all bit.ly, clig.s, tweetburner and so on show a lot more clicks when in fact there are sooooo much less clicks! I know we like to see many clicks on our links but seriously, these short url statistics suck big time!

  • October 9, 2009
    kaje

    Nice article, but tracking is more than that.

    I was looking to see if there was a better alternative for http://n.0sp.in

    I just haven’t found one yet. I like to use it to track individual reach not just link reach. I can track the exact person that clicked on the link, not just if it got clicked, great for twitter and other social media.

  • October 26, 2009

    Thank you for sharing this information on how to track twitter clicks. Google Analytics and other twitter tools can help track your peers and visitors

  • October 29, 2009

    Great article, was aware of the content but have saved for reference. :)

  • January 9, 2010

    Finally a way to track twitter clicks!

  • May 14, 2010

    thank you! I changed url in twitter..I hope it works ;-)

  • May 26, 2010

    Great Article, Firstly we used URL tagging for Adwords, but using twiiter tracking gud.

  • August 27, 2010

    While using the bookmarklet I was logged in to both twurl.com and google.com/analytics. After giong to a web page and clicking the bookmarklet, in G/A I was expecting an account name to show up using the campaign name I specified. But nothing was there. Where does this tracking data showup? Is there a problem with the bookmarklet since it was created over a year ago? Perhaps Google has changed so that it no longer works.

  • September 6, 2010

    My question is similar to Gary’s (@MrCampTech): I am using Google’s URL tagging. Where am I supposed to get the results?…

Sorry, the comment form is closed at this time.