---
title: "UTM ID: The Parameter GA4 Needs to Import Non-Google Ad Costs"
canonical: "https://www.owox.com/blog/articles/utm-id"
updated: "2026-10-29"
---

# UTM ID: The parameter GA4 needs to import non-Google ad costs

[Data Tracking](/blog/topics/tracking) · Updated April 26, 2023 · [Alyona Samovar](/team/alyona-samovar) · 5 min read

![UTM ID: The parameter GA4 needs to import non-Google ad costs](https://cdn.owox.com/www/content-marketing-article/utm-id/thumbnail/3-9rbn11.png/public)

**`utm_id` is the UTM parameter that carries a campaign’s ID.** Google Analytics 4 stores it as the campaign ID and uses it to match imported ad costs to sessions, which is more reliable than matching on a campaign name that somebody can edit.

If you have never heard of the _utm\_id_ tag, now is the time to get to know it! Without this tag, you won’t be able to import ad cost data, impressions, and clicks for non-Google campaigns into Google Analytics 4.

## What is UTM ID?

You are probably familiar with the [standard UTM tags](/blog/articles/how-to-use-utm-tags) (_utm\_source, utm\_medium, utm\_campaign_), which are added to the end of a URL to track and analyze incoming website traffic.

**_Utm\_id_ tag** (which refers to the Campaign ID in Google Analytics) is not as widely-used.

UTM tags were invented by Urchin Software Corporation over 15 years ago. After Google acquired the company, this functionality was migrated to Google Analytics.

Although the _utm\_id_ tag has been around as long as the standard of UTM tags, few people have used it until now. In Google Analytics Universal, this tag was optional and was primarily used to [shorten URL addresses](https://camptag.ai/resources/utmid-google-ads.html).

However, in Google Analytics 4, _utm\_id_ has become more important. If you want to import ad cost data from non-Google advertising services to Google Analytics 4 through importing data, then four UTM\_tags [must be present](https://support.google.com/analytics/answer/10071305) in your ad campaigns:

*   utm\_campaign (campaign name)
*   utm\_source (campaign source)
*   utm\_medium (campaign channel)
*   utm\_id (campaign ID)

To be able to import non-Google [advertising costs](/metrics/advertising-costs) into Google Analytics 4, you need to go to your advertising accounts now and adjust the final URL by adding the _utm\_id_ parameter.

## Why do you need to add utm\_id to your ad tracking?

Many marketers don’t want to bother with manually creating complex reports and prefer to view advertising campaign reports in Google Analytics. But in order to evaluate the effectiveness of advertising, you need to upload expenses, impressions, and clicks from non-Google sources to Google Analytics. The problem is that without _utm\_id_, you won’t be able to upload this data to Google Analytics 4.

Let’s look at some specific examples.

After setting up ad cost data importing, a Non Google cost report will appear in the Acquisition section of Google Analytics 4.

![Google Analytics 4 report displaying Non-Google cost data with empty values for clicks, impressions, and cost metrics.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/1.png/public)

To populate the columns for clicks, impressions, and expenses with values instead of zeros, you need to upload a CSV file with cost data into Google Analytics 4.

Let’s try, for example, to upload information about _campaign1_ from _source/medium_ = _bing/cpc_ without a filled value in the _campaign\_id_ column.

![Campaign data spreadsheet highlighting missing campaign ID.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/2.png/public)

If we try to upload this file to GA4, the following error will appear: _Invalid empty value detected on row campaign\_id. A non-empty value must be set._

![GA4 import error message showing ‘Invalid empty value detected on row campaign\_id’ with import status failed.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/3.png/public)

If we fill in the _campaign\_id_ field (with some random value), then the import succeeds, with 100% of rows imported and a 0.0% match rate.

If we look at the Match rate column, we’ll see zeros there. This means that GA4 cannot match the uploaded data with the information that is already in the system because there is no key (_utm\_id_) to blend the data.

The file is uploaded, there are no errors in it, but we have a zero % Match rate. This means that nothing we have uploaded in this file matches what is in GA4. All traffic that was not tagged with _utm\_id_ will not be matched with what we uploaded in the file.

Therefore, you have not made any progress in analyzing the effectiveness of non-Google advertising campaigns in GA4 ¯\\\_(ツ)\_/¯

Many users ask themselves: _Why do I get a Match rate of 0% when importing cost data in Google Analytics 4?_

To solve the problem described above, you should first tag your traffic with _utm\_id_. The next day, in the report in the Google Analytics 4 interface, you will see that this field is no longer empty, which means that you did everything correctly.

Before:

![GA4 Non-Google cost report showing empty session campaign ID field.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/5.png/public)

After:

![GA4 Non-Google cost report showing populated session campaign ID field with user, session, and engagement data.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/6.png/public)

Next, you should fill in the corresponding _campaign\_id\_column_ field in the uploaded file.

![Spreadsheet showing campaign data with the campaign ID column highlighted for completion.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/7.png/public)

When you load this CSV file into GA4, the zero Match rate will disappear.

And in the Non-Google cost report, you will see clicks, costs, impressions, and [ROAS](/metrics/return-on-ad-spend). 🎉😎

![GA4 Non-Google cost report showing clicks, costs, impressions, and ROAS data populated.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/9.png/public)

## The Turning Point

OWOX Data Marts

See your first report built in real time. _15 minutes._

1.  Connect your data warehouse
2.  Pick your metrics
3.  Get a live Google Sheets report

In the time it takes to write a ticket. Then imagine never writing that ticket again.

[Book a Demo](/book-a-call)

We'll use your actual use case

## How to add utm\_id to your links

[Campaign URL Builder](https://ga-dev-tools.google/campaign-url-builder/) from Google can be used to create links with UTM tags.

![Google Campaign URL Builder interface with fields for creating UTM tagged links.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/10.png/public)

### What should I use to fill in the campaign ID value?

If you plan to manually upload expenses to Google Analytics 4, you can use any values you like for Campaign ID.

However, this approach won’t work for automated cost importing. The service that imports your ad cost needs to obtain the Campaign ID value. Not all advertising platforms allow you to retrieve this ID via an API. Therefore, we recommend duplicating the Campaign Name value in Campaign ID.

![Spreadsheet with campaign data, highlighting the campaign ID column and campaign name values.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/11.png/public)

### How to check if utm\_id values are being passed to Google Analytics 4

To verify that you have set up your _utm\_id_ correctly and that it is being passed to GA4, you can create a custom report in the Explorations section with the Session campaign ID parameter.

For example, if you have added _utm\_id_ to your URLs and you already have traffic with these tags, then the _Session campaign ID_ field will be populated in the report the next day.

![GA4 Exploration report showing Session campaign ID data, used to verify UTM ID values are being passed correctly.](https://cdn.owox.com/www/content-marketing-article/utm-id/body/12.png/public)

## Summary

If you plan to import advertising costs to Google Analytics 4, then you need to add [the required](https://support.google.com/analytics/answer/10071305) **_utm\_id_** parameter (campaign identifier) to your ad links.

We recommend updating [UTM tags](/blog/articles/how-to-use-utm-tags) on all of your paid advertising campaigns to include the Campaign ID parameter, as this will be necessary to retrospectively import cost data into GA4.

Currently, only manual ad cost import is available in Google Analytics 4. To automate importing and save your time, use [the solution from OWOX](/import-advertising-costs-to-google-analytics-4).

**Automatically import Google Analytics 4 cost data**

With OWOX, you can automatically merge your advertising cost data from different platforms and upload it to GA4 so you can analyze your return on ad spend (ROAS) and acquisition cost to make fully informed marketing decisions.

Early access will be available April 2023. Sign up now to get priority access, news, and updates.

## Who wrote this

![Alyona Samovar](https://cdn.owox.com/www/webflow/6799099d337aa8a997b03b56_Alyona-Samovar.png/public)

[Alyona Samovar](/team/alyona-samovar) Senior Digital Analyst

Alyona Samovar is a Senior Digital Analyst who spent years at OWOX helping enterprise clients design analytics systems, build BigQuery reporting pipelines, and optimize marketing measurement. She specializes in SQL-based analytics, data modeling, and turning raw marketing data into actionable insights. Alyona writes about practical analytics workflows, BigQuery best practices, and data-driven decision-making.

[Data Tracking](/blog/topics/tracking)

## Related articles

[Data Tracking · Direct Traffic in Google Analytics 4: Causes and Fixes · October 7, 2026](/blog/articles/direct-traffic)

[Data Tracking · First-Party, Second-Party and Third-Party Data Explained · December 13, 2024](/blog/articles/first-party-second-party-and-third-party-data-overview)

[Data Tracking · Google Analytics and GDPR Compliance in Europe · October 8, 2026](/blog/articles/google-analytics-ensure-gdpr-compliance)

[See all articles →](/blog/articles)

## Links

Pages this page links to, on this site and on docs.owox.com. Where the page has a Markdown twin, its address follows the link.

- [Data Tracking](https://www.owox.com/blog/topics/tracking) — /blog/topics/tracking.md
- [Alyona Samovar](https://www.owox.com/team/alyona-samovar) — /team/alyona-samovar.md
- [standard UTM tags](https://www.owox.com/blog/articles/how-to-use-utm-tags) — /blog/articles/how-to-use-utm-tags.md
- [advertising costs](https://www.owox.com/metrics/advertising-costs) — /metrics/advertising-costs.md
- [ROAS](https://www.owox.com/metrics/return-on-ad-spend) — /metrics/return-on-ad-spend.md
- [Book a Demo](https://www.owox.com/book-a-call) — /book-a-call.md
- [the solution from OWOX](https://www.owox.com/import-advertising-costs-to-google-analytics-4) — /import-advertising-costs-to-google-analytics-4.md
- [Data Tracking · Direct Traffic in Google Analytics 4: Causes and Fixes · October 7, 2026](https://www.owox.com/blog/articles/direct-traffic) — /blog/articles/direct-traffic.md
- [Data Tracking · First-Party, Second-Party and Third-Party Data Explained · December 13, 2024](https://www.owox.com/blog/articles/first-party-second-party-and-third-party-data-overview) — /blog/articles/first-party-second-party-and-third-party-data-overview.md
- [Data Tracking · Google Analytics and GDPR Compliance in Europe · October 8, 2026](https://www.owox.com/blog/articles/google-analytics-ensure-gdpr-compliance) — /blog/articles/google-analytics-ensure-gdpr-compliance.md
- [See all articles →](https://www.owox.com/blog/articles) — /blog/articles.md
