Dangers of Shortened URLs for Analytics

Published July 30, 2014
Shortened URL services like are incredibly convenient, right? They allow you to take an unwieldy, lengthy (and let’s face it - ugly) URL and transform it into a short, manageable URL with just the click of a button. You can even view quick stats to learn how many clicks your shortened URL received.
Sweet, right? Not really.
What many marketers and social media experts don’t realize is that major problems can occur from mindlessly shortening URLs to share on social media. You’re impacting the central data for your website in Google Analytics, which is much more important (and telling) than any one-off analytics data you’ll receive from that URL shortener.

dangers of url shorteners


In fact, relying on URL shorteners to aid the social management process can ultimately hurt social media in an organization and downplay its value by eliminating important social traffic data in Google Analytics. If your boss or client sees skewed results - fewer sessions and conversions from social media than should be attributed -- it may be decided that social media is something he or she no longer wishes to continue.

Problems with Shortened URLs

So, how exactly does this happen? Let’s take a look at the results from an infographic that was promoted primarily via social media with a shortened URL. The stats are segmented by Source/Medium for a specific landing page.

google analytics landing page by source

As you can see, Google Analytics shows the primary source as Direct, with only three clicks coming from Twitter (note that in this case the source showed up as, possibly from a URL tagger as will be explained later, but generally Twitter links show up as Wow, not an impressive Twitter showing, huh?

Well, let’s take a look at’s analytics for the link.

clicks from shows 47 clicks coming from the shared link. Granted, some differences will occur between and Google Analytics (the GA view shown below filters out sessions from some IP addresses, and is less restrictive about tracking bot clicks) but, it’s safe to say most of the 44 direct sessions recorded have been misattributed and are a result of users clicking on the link via Twitter, not visiting the content directly. This means the content received many more sessions from Twitter than was reported.

Because direct traffic lumps together any sessions where Google could not identify a specific source, you can see how easy it becomes for a URL shortener to hurt your ability to track a proper source. In the process of redirecting the URL from the link to the link, the source gets lost and is seen simply as a direct visit. Some shorteners like Twitter’s will pass on the referral source properly, but you can’t always trust the source to come through on its own. In addition to not showing correctly in referral reports, social visits from shortened URLs won’t be counted in the Social section of analytics. Marketers can use this section to get an excellent peek at sessions, conversions, and other stats from social media referrals but is useless without proper data.

The screenshot below shows referrals from Twitter in the Social > Network Referrals report, after clicking on Twitter to segment specifically to that channel. The second link on the list is the same infographic from the previous report, with just three visits reported here as well.

twitter referrals in google analytics

Ensuring Accurate Data

Now that you’ve seen the negative effect URL shorteners can have on your GA data, how can you ensure this doesn’t happen to you and that you get accurate data from links you share on social channels? First of all, you don’t necessarily need to shorten links in the first place. By using the true version of the URL, you’re most likely to see the proper source when users click the links. Twitter automatically shortens URLs via, so you don’t have to worry about lengthy URLs eating up your character limit. For example, in this referral report represents visits from Twitter.

referrals from in google analytics

Shortened URLs also aren’t really an issue for Facebook, which allows a long enough character limit in posts to make shortening them unnecessary. Also, there’s little need to care about the extra analytics you can get from shortened URL services as long as you have access to Google Analytics which provides more extensive and more accurate data anyway.

However, you may still prefer to use a URL shortener. Maybe you’re concerned about lengthy URLs looking messy on Facebook. You can still use a shortener and get correct analytics data, as long as you tag your links with campaign parameters before shortening.

Even if you’re not using a URL shortener, tagging URLs before sharing is a good practice to establish. Referral data often gets lost for various reasons, especially for mobile visits (see this article for more details). When you tag your campaigns, you don’t have to rely on the app or browser to correctly send referral information to Google Analytics.

Because a tagged URL can look exceptionally long and unwieldy when appearing in a social media post, tagging combined with a URL shortener makes a smart approach.

To add these parameters, head on over to Google’s URL builder.

google url builder

This example shows the process of preparing a custom link to share a recent Megalytic blog post on Twitter. First, paste your URL into the “Website URL” field.

Next, insert the social network where you’re planning to share the link into “Campaign Source” (in this case for Twitter). Medium should be broader than the specific site/source; in this example, “social” will tag any link shared to social media.

The “Campaign Content” field is not necessary, but we’ve included an abbreviated title for the article being shared to show extra info in analytics. Finally, the “Campaign Name” is a more general category we’re using for any links shared to the blog.

Click “Submit,” and you’ll see a final URL you can then copy. Paste that version of the URL into your preferred URL shortening service and generate your shortened URL. That URL (for example,*****), will then forward to the final link with all the proper tracking parameters tacked on. This will allow you to see visits accurately attributed to Twitter, as they should be.

Automatic URL Tagging

Note that some social sharing services offer an option to automatically tag URLs. However, Annie Cushing points out that some tools add inaccurate tags, causing just as much damage to your data as not tagging URLs before shortening. You’ll want to ensure that the tool you use adds the proper tags; if not, you’re better off turning off auto-tagging and manually adding the parameters.


In summary, you’ve seen the dangers of using shortened URLs without properly tagging them first. Don’t make the same mistakes with your social sharing, and ensure that your analytics data is coming through accurately. Make a plan with whoever manages your social media to either stop shortening URLs or else add tags before shortening.


As a digital marketer, juggling a variety of advertising platforms is just a part of everyday life. From Google Ads and Facebook to Twitter, LinkedIn, AdRoll, and more, you’re used to having a lot on your plate.
But when you have to worry about installing performance-tracking tags and pixels on your website so you can optimize for each platform, things can get overwhelming. Not only do you have to add this time-consuming task to your IT team’s already long to-do list, but it creates a lot of additional code to manage, maintain, and update.
There are lots of ways to drive traffic to a website these days – social media, pay-per-click ads, display ads, email marketing, etc. But, for many websites, organic search remains the largest source of traffic.
As an agency, you need to help your clients understand what’s driving organic search traffic to their websites and how they can grow that traffic. This means you need a source of data that measures organic search traffic. For traffic from Google Search, there is an excellent free tool from Google providing that data: Google Search Console (GSC). While other tools "scrape" data from the Google search engine result pages (SERPs), GSC provides the official data from Google.
In this blog post, we’ll look at what kind of data you can pull from Google Search Console, how to use it for SEO, and how to best share it with your clients.
Facebook lead ads are incredibly useful when you want to create a connection with potential prospects. You can use lead ads to gather emails and other contact information, provide quotes and estimates, get people to sign up for your newsletter, and just about anything else you can think of. The benefit of lead ads is that they help you engage with your audience on a deeper level by collecting contact information.
But how can you create lead ads that are more likely to convert? Luckily, there is a lot you can do to optimize your lead ads. Whether you’re new to Facebook lead ads or simply want your current ads to perform better, this post will help you improve your conversion rates.