How to Track Vanity URLs in Google Analytics
Using a slick vanity URL like yourbrand.com/go for your latest podcast ad or social media campaign makes it easy for your audience to remember and visit. The problem is, that memorable URL typically vanishes as soon as the user is redirected, making it nearly invisible inside Google Analytics. This article will show you exactly how to solve that problem and properly track the performance of your vanity URLs in GA4.
What Exactly Is a Vanity URL?
A vanity URL is a short, custom, and easy-to-remember web address created specifically for a marketing campaign. Instead of sending users to a long, clunky URL filled with tracking codes, you give them something simple and branded.
For example, instead of asking podcast listeners to visit:
yourbrand.com/products/the-incredible-widget-pro-5000/special-offers/summer-sale
You’d tell them to go to:
yourbrand.com/deal
This simple URL then automatically redirects the user to the long, original landing page URL. They are great for offline marketing (like print, radio, or TV), social media bios, podcasts, and any situation where a user has to manually type in an address.
So, What's the Tracking Problem?
The magic of a vanity URL - the redirect - is also its biggest analytics challenge. Google Analytics works by tracking the page the user actually lands on, not the URL they typed into their browser first.
Here’s the breakdown:
- A user hears about
yourbrand.com/dealon a podcast and types it in. - Your server receives the request and automatically redirects them to the long destination URL.
- Google Analytics loads on the final destination page and records a pageview for this URL, not the one from the podcast.
If you search for /deal in your Google Analytics reports, you won't find it. The traffic will likely just get bucketed under "Direct," giving you zero credit or insight into how your campaign performed. Fortunately, the fix is straightforward.
The Right Way to Track Vanity URLs: UTM Parameters
The most reliable and universally accepted method for tracking marketing campaigns is using Urchin Tracking Module (UTM) parameters. These are simple tags you add to the end of your destination URL that tell Google Analytics exactly where the traffic came from.
A UTM-tagged URL looks like this:
yourwebsite.com/landing-page?utm_source=source_name&utm_medium=medium_name&utm_campaign=campaign_name
There are five standard UTM parameters, but you'll primarily use these three for vanity URL tracking:
- utm_source: The specific place a user came from (e.g.,
podcast-network,facebook-group,newsletter). - utm_medium: The marketing channel (e.g.,
audio,social,email,print). - utm_campaign: The name of your specific promotion (e.g.,
summer-sale-2024,new-feature-launch).
The key is to apply these tags to your destination URL, and then point your vanity URL to that newly tagged link.
Step-by-Step Guide to Setting Up Tracking
Let's walk through an example. Imagine you're promoting a summer sale on a popular podcast called "Marketing Masters," and you want to use the vanity URL coolwidgets.com/podcast. Your destination landing page is coolwidgets.com/offers/summer-blowout.
Step 1: Build Your Tagged Destination URL
Use a tool like Google's Campaign URL Builder for GA4 to avoid syntax errors. It makes the process foolproof.
Enter the follow details into the builder:
- Website URL:
https://coolwidgets.com/offers/summer-blowout - Campaign Source:
marketing-masters(to identify the specific podcast) - Campaign Medium:
podcast(to identify the channel) - Campaign Name:
summer-sale-2024(to group all your summer sale efforts together)
The builder will instantly generate your fully-tagged destination URL:
https://coolwidgets.com/offers/summer-blowout?utm_source=marketing-masters&utm_medium=podcast&utm_campaign=summer-sale-2024
Now, any traffic that arrives at your website via this specific URL will be perfectly tagged and identifiable in Google Analytics.
Step 2: Set Up the Redirect
This is the final and most important step. You need to configure your vanity URL to redirect to the UTM-tagged URL we just created.
Log in to your domain registrar, hosting provider, or whatever platform manages your URLs and create a permanent (301) redirect that does the following:
- Redirect From:
https://coolwidgets.com/podcast - Redirect To:
https://coolwidgets.com/offers/summer-blowout?utm_source=marketing-masters&utm_medium=podcast&utm_campaign=summer-sale-2024
Now when someone types in coolwidgets.com/podcast, they will be sent to the correct landing page, and all the "Marketing Masters" campaign data will be neatly passed along to Google Analytics.
Finding Your Vanity URL Campaign Data in GA4
Once your redirect is live and starts getting traffic, you can easily find your data in Google Analytics 4. The source, medium, and campaign you defined will show up as dimensions in your acquisition reports.
Here’s how to find it:
- Log in to your Google Analytics 4 account.
- In the left-hand navigation, go to Reports > Acquisition > Traffic acquisition.
- By default, the report table uses Session default channel group as the primary dimension. Click the small dropdown arrow and change this primary dimension to Session campaign.
- You’ll now see a list of all your campaign names. Find the one you created - in our case, "summer-sale-2024" - in the table.
Here, you'll see all the key metrics associated with that campaign: the number of users, sessions, engaged sessions, and most importantly, conversions. This tells you exactly how much traffic and business your vanity URL drove.
To get even more granular, you can add a secondary dimension. Click the blue "+" button next to the primary dimension dropdown and select Session source / medium. This will show you exactly which sources (like our "marketing-masters / podcast") are contributing to each campaign.
Best Practices for Consistent Tracking
Following a few simple rules will keep your campaign data clean, organized, and easy to analyze.
- Establish a Naming Convention: Fights over naming conventions are legendary in marketing teams for a reason. Decide on a consistent format and stick to it. A popular choice is using all lowercase letters with dashes instead of spaces (e.g.,
black-friday-promo, notBlack Friday Promo). Share this convention in a team document. - Be Descriptive but Concise: A Campaign name like "Campaign1" tells you nothing a few months from now. Make your UTMs descriptive enough to be understood without being excessively long.
podcast-sponsorship-jun24is much better than justpodcast-ad. - Always Test Your Redirects: Before you announce your vanity URL to the world, test it. Type it into your browser and confirm two things: 1) you land on the correct page, and 2) the full UTM-tagged URL appears in your browser's address bar. You can also check the GA4 Realtime report to see your visit show up with the correct campaign tags.
Final Thoughts
Tracking the performance of your vanity URLs isn't as tricky as it seems. It all comes down to bridging the information gap created by the redirect by using a properly tagged destination URL with consistent UTM parameters. Once that's set up, all your campaign data flows directly into Google Analytics for easy analysis.
Assembling campaign data is just one piece of the puzzle. Answering bigger questions like "how did our podcast sponsorships influence our Shopify revenue this quarter?" often requires logging into multiple platforms and manually combining spreadsheets. We built Graphed because we believe getting those answers should be faster. Simply connect your analytics and sales platforms, then ask in plain language, "Compare our podcast campaign performance vs total leads from Salesforce." You get a unified, real-time dashboard in seconds, saving you from the usual reporting grind.
Related Articles
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.
How to Create a Photo Album in Meta Business Suite
How to create a photo album in Meta Business Suite — step-by-step guide to organizing Facebook and Instagram photos into albums for your business page.