How to Track URL Builder in Google Analytics

Cody Schneider8 min read

If you're spending time or money driving traffic to your website, you need to know what's working and what isn't. Guessing which social post, email newsletter, or ad campaign led to a sale is a recipe for a wasted marketing budget. This is where tracking your URLs comes in, and this guide will show you exactly how to do it using UTM parameters inside Google Analytics.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

What Are UTM Parameters, Really?

Think of UTM parameters as simple "tags" you add to the end of a URL. These tags don't change the destination of the link, but they give Google Analytics very specific information about where the person who clicked it came from. It's like putting a detailed label on a package before you ship it, when it arrives, you know exactly who sent it, why they sent it, and how it got there.

When someone clicks a link with these tags, Google Analytics reads them and neatly organizes that visit into the correct campaign, source, and medium. This means no more lumping all your social media traffic into one big, undefined bucket. Instead, you can see the precise performance of a specific Facebook ad versus a specific LinkedIn post.

There are five standard UTM parameters you can use, but you'll almost always focus on the first three:

  • utm_source: This identifies which site sent the traffic. It's the "where." Examples: facebook, google, linkedin, email_newsletter.
  • utm_medium: This describes the general type of link. It's the "how." Examples: cpc (for cost-per-click ads), social, email, display.
  • utm_campaign: This identifies a specific campaign or promotion. It's the "why." Examples: summer_sale_2024, q4_webinar_promo, black_friday_deals.
  • utm_term (Optional): Originally used for tracking paid search keywords. For ads on Google, this is often handled automatically, but you can use it manually for other campaigns.
  • utm_content (Optional): Used to differentiate links that point to the same URL within the same campaign. For example, if you have a "Sign Up" button and a text link in the same email, you could use utm_content=cta_button and utm_content=text_link to see which one gets more clicks.
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

How to Build Your Tracking URLs

Manually typing out these long, tagged URLs is a recipe for typos and broken links. Fortunately, Google provides a free and easy tool to do it for you: the Campaign URL Builder.

Let’s walk through building one step-by-step. Imagine you're running a Facebook advertising campaign to promote a new blog post about "The Ultimate Guide to SEO."

Step 1: Open the Campaign URL Builder You can find it by searching for "Google Campaign URL Builder" or going directly to their page. Keep this bookmarked!

Step 2: Enter Your Website URL In the first field, Website URL, paste the link to the page you're sending traffic to. For our example, this is the destination blog post. e.g., https://www.yourcoolsite.com/blog/ultimate-guide-to-seo

Step 3: Fill In Your Campaign Parameters Now you fill in the tags that tell the story of this click. Remember, Source, Medium, and Campaign name are the most important.

  • Campaign Source (utm_source): The traffic is coming from Facebook. So we'll enter: facebook
  • Campaign Medium (utm_medium): This is a paid ad, so the standard is 'cost-per-click'. We'll enter: cpc
  • Campaign Name (utm_campaign): We need a clear, understandable name for this specific marketing effort. We'll enter: seo_guide_promo

Step 4: Generate and Use Your URL As you fill in the fields, the builder will automatically generate your tagged URL at the bottom of the page. It will look something like this: https://www.yourcoolsite.com/blog/ultimate-guide-to-seo?utm_source=facebook&utm_medium=cpc&utm_campaign=seo_guide_promo

That's it! Now, you take this full URL and use it as the destination link in your Facebook Ad. You don't use the clean URL, you use this complete tracking URL. When someone clicks your ad, Google Analytics will know exactly where they came from.

Best Practices to Avoid Messy Data

Using the URL builder is easy enough, but the real power comes from being consistent. If you aren't careful, you can quickly end up with cluttered, confusing data that's hard to analyze. Follow these simple rules to keep your tracking clean.

1. Be Ruthlessly Consistent

Google Analytics is case-sensitive. That means it sees facebook, Facebook, and FB as three completely separate traffic sources. This fragments your data and makes it impossible to get a clear picture. The best way to avoid this is to create a simple spreadsheet or document that defines your naming conventions and share it with your team. Decide on your standards and stick to them.

2. Always Use Lowercase

The easiest way to solve the case-sensitivity problem is to make a simple rule: always use lowercase letters for UTM parameters. No exceptions. This one tiny habit will save you countless headaches down the road.

3. Use Underscores, Not Spaces

URLs can't contain spaces. If you use a space in a parameter (like summer sale), it gets converted into a messy %20 character. To keep your URLs tidy and easy to read, use underscores (summer_sale) or hyphens (summer-sale) instead.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

4. Keep It Simple and Understandable

Your campaign names should be descriptive enough for you to understand what an entry means when you're looking at a report six months from now. For example, q2_newsletter_product_launch_promo is much more useful than promo_april_v2. Devise a system that makes sense for you and your business.

5. Never, Ever Use UTMs on Internal Links

UTM tags are for tracking traffic that comes to your site from external sources. If you put UTM tags on links within your own website (e.g., from your homepage to your contact page), you'll break your Google Analytics session data. Every time someone clicks one of those links, it will start a new session, resetting the original source of the traffic and completely messing up your attribution.

How to Find Your Campaign Data in Google Analytics 4

Once you've been running campaigns with your new tracking URLs for a while, it's time to see the results of your work. Here’s where to find that data in Google Analytics 4.

Step 1: Navigate to the Traffic Acquisition Report Log into your GA4 property. In the navigation menu on the left, click on Reports. This will open the main reporting dashboard. From there, look under the Life cycle collection and click on Acquisition > Traffic acquisition.

Step 2: Choose the Right Primary Dimension By default, GA4 shows you data grouped by the "Session default channel group" - broad categories like Organic Search, Direct, and Paid Social. This is helpful, but we want to see our specific UTM parameters.

Click the small dropdown arrow right above the first column of the data table (where it currently says "Session default channel group"). A list of other dimensions will appear. To see your source and medium, choose Session source / medium. The report will reload, showing you rows like "google / cpc," "facebook / social," and the one we created: "facebook / cpc."

Step 3: Add the Campaign Name as a Secondary Dimension Now that you can see your sources and mediums, you'll want to see which specific campaign is performing best. To do this, click the small blue + icon to the right of the primary dimension's dropdown menu.

This opens a search box for secondary dimensions. Search for "Campaign" and select Session campaign from the list. The report will update again, adding a new column that shows the campaign name associated with each source and medium.

You can now see a full breakdown of your marketing efforts. You’ll have columns showing Sessions, Users, Engagement Rate, Conversions, and Revenue for each tagged campaign, giving you a clear view of your top performers.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Saving Your View for Quick Access

Going through those steps every time you want to check on performance can be tedious. You can save this view as a custom report for one-click access in the future.

GA4's Explore section is perfect for this. In the left navigation, click Explore and start a new Blank report. Under the Variables panel, you'll need to import the Dimensions (like Session campaign, Session source / medium) and Metrics (like Sessions, Conversions, Total revenue) you care about. Then, you can drag your dimensions into Rows and your metrics into Values to build a persistent custom table that you can come back to anytime.

Final Thoughts

Mastering UTM parameters transforms your marketing analytics from vague guesswork into a precise roadmap. By carefully tagging your inbound links, you get a clear, undeniable picture of which campaigns drive traffic, engagement, and revenue. It requires a bit of upfront setup and consistency, but the clarity you gain is invaluable for making smarter marketing decisions.

As you scale, pulling campaign data from Google Analytics, plus your ad spend data from Facebook Ads, and your sales data from Shopify can become a manual reporting chore. We built Graphed because we believe getting these insights shouldn't take hours of spreadsheet work. Instead of manually stitching together reports, we let you connect all your data sources and then create real-time dashboards just by describing what you want to see, letting you focus on the insights instead of the manual data pulling.

Related Articles

How to Enable Data Analysis in Excel

Enable Excel's hidden data analysis tools with our step-by-step guide. Uncover trends, make forecasts, and turn raw numbers into actionable insights today!