Backround image

What is the utm_campaign query parameter?

The utm_campaign parameter identifies the specific marketing campaign that brought a visitor to your site. It's the tag that lets you compare performance across different promotions, product launches, or seasonal sales in your analytics.

Learn More

How does utm_campaign work?

When you build a tracking URL, utm_campaign names the campaign so you can group all traffic from a single initiative together — regardless of which source or medium brought the visitor.

https://yourwebsite.com/?utm_source=facebook&utm_medium=paid_social&utm_campaign=summer_sale

In this example, you could run the "summer_sale" campaign across Google, Facebook, and email simultaneously. The utm_source and utm_medium would differ for each channel, but the campaign name stays consistent, letting you see total campaign performance in one view.

How is utm_campaign different from other UTM parameters?

The UTM family works as a hierarchy. While utm_source tells you where and utm_medium tells you how, utm_campaign tells you why — the specific initiative or promotion behind the traffic.

Best practice: use lowercase, hyphen-separated names like spring-launch-2024 rather than spaces or mixed case, to keep your analytics reports clean.

utm_campaign and TTFB

Because utm_campaign values are unique per campaign and typically combined with utm_source and utm_medium, the number of distinct URLs hitting your server can grow significantly during active promotions. Without proper cache configuration, each unique combination triggers a fresh server response instead of serving from cache.

How is utm_campaign different from gclid?

gclid is auto-generated by Google Ads and contains an opaque identifier — you can't read campaign info from it directly. In contrast, utm_campaign is human-readable and manually set by you, making it useful across any platform, not just Google. Many marketers use both: gclid for Google Ads auto-tagging and UTM parameters for cross-platform reporting.

Test your site's performance with utm_campaign

Use the tool below to measure how the utm_campaign parameter affects your website's TTFB.

Url to be checked

Paste your url with http(s)://

Reset
Site url
Runs for each url
Url parameters

created by

Mateusz Zadorożny

Founder of Shift64 — high-performance infrastructure for WooCommerce stores that have outgrown their hosting.