ETLMCPData Conveyance Works
Log in Start free
Guides

Every UTM parameter GA4 reads, and the ones it ignores

The nine UTM parameters Google Analytics documents, which to always set, which two it does not report, and which ones reach etlmcp's GA4 rows.

Google Analytics documents nine UTM parameters: utm_id, utm_source, utm_medium, utm_campaign, utm_source_platform, utm_term, utm_content, utm_creative_format and utm_marketing_tactic. Always set utm_source, utm_medium and utm_campaign; when you tag links by hand, Google also strongly recommends utm_id and utm_source_platform. Two of the nine, utm_creative_format and utm_marketing_tactic, are not reported in Google Analytics properties, so values you put there will not show up in your reports. And etlmcp's GA4 rows carry only the campaign and the session source / medium, so utm_term and utm_content never reach the table etlmcp writes.

The nine parameters

Parameter What it holds Google's guidance
utm_id The campaign's ID, the same one you use when you upload campaign data Strongly recommended for manual tagging
utm_source Where the visit came from, such as google or a newsletter name Always set
utm_medium The kind of channel, such as cpc, banner or email Always set
utm_campaign The campaign, product, slogan or promo code, such as spring_sale Always set
utm_source_platform The platform that sent the traffic, such as Search Ads 360 Strongly recommended for manual tagging
utm_term The paid keyword Optional
utm_content Which creative or link was clicked, for two calls to action in one email Optional
utm_creative_format The type of creative, such as display, native or video Not reported in properties
utm_marketing_tactic The targeting approach, such as remarketing or prospecting Not reported in properties

The Data API's dimension list does name a session dimension for each of these, among them sessionManualTerm for utm_term, sessionManualAdContent for utm_content, and sessionManualCreativeFormat and sessionManualMarketingTactic for the last two. The help page still says the last two are not reported in properties, so do not plan a report around them until you have seen values come through in your own property.

Rules that decide what you see

  • Case matters. Values are case sensitive: utm_source=google and utm_source=Google are two different sources. Use one fixed casing, such as lowercase.
  • A missing parameter becomes (not set). Google discourages tagging a link with a single parameter. If you leave utm_campaign off, the session's campaign reads (not set).
  • One campaign per session. A session keeps the campaign and source it started with. If a visitor clicks a second tagged link during the same session, the new values are tied to the events that carried them, not to the session.
  • Where to look. Session source / medium, session source, session medium and session campaign appear in the Traffic acquisition report. Page path and landing page dimensions that include the query string leave the UTM parameters out; the full address, with them, is in Page location.

What reaches etlmcp's GA4 rows

The GA4 connector asks the Data API for four dimensions and no others: date, sessionCampaignId, sessionCampaignName and sessionSourceMedium. So of your tags, only these reach the rows:

  • utm_campaign, as campaign_name.
  • utm_id, as campaign_id, when Google reports a campaign ID. When the ID is empty or (not set), etlmcp uses the campaign name as campaign_id instead.
  • utm_source and utm_medium, together, as one source / medium text in both adgroup_id and adgroup_name. The GA4 rows have no ad group, so that pair of columns holds the session source / medium.

utm_term, utm_content and utm_source_platform are not requested, so a keyword or creative split you made with them is not in etlmcp's GA4 rows; keep that analysis in Google Analytics itself. A missing campaign name or source / medium is stored as (not set), the same text Google shows. Because values are case sensitive, google / cpc and Google / cpc arrive as separate rows; group on lower(adgroup_name) if your tagging was not consistent.

The metrics, such as sessions and revenue, go to extra columns. In PostgreSQL those columns keep their dotted names, so quote them:

SELECT campaign_id,
       campaign_name,
       adgroup_name AS source_medium,
       sum("extra.sessions") AS sessions
FROM ga4_daily
WHERE network = 'ga4'
GROUP BY campaign_id, campaign_name, adgroup_name;

Replace ga4_daily with the table your PostgreSQL destination writes to. The GA4 connector page lists every field the connector writes.

Related

Sources

  1. URL builders: Collect campaign data with custom URLs — support.google.com, checked
  2. API dimensions and metrics — developers.google.com, checked
  3. Campaigns and traffic sources — support.google.com, checked