Home / Knowledge work / Marketing

Measuring marketing right: GA4, UTM links, consent and email rules

Set up trustworthy measurement: key events in Google Analytics 4, consistent UTM tags, consent mode, and the email authentication and unsubscribe rules that keep you out of spam.

Intermediate · 14 min read · Updated December 3, 2026

If you cannot measure a campaign, you cannot improve it, and you cannot defend its budget. Measurement also has rules now: privacy laws decide what you may track, and email providers decide whether your messages reach the inbox. This lesson sets up all four pieces properly.

How the pieces fit

Email or adtagged linkWebsitelanding pageConsentbanner choiceGA4events, reportsutm_sourceutm_mediumutm_campaignGranted: full dataDenied: no cookies,modeled dataKey eventsby campaignBreak any link in this chain and the numbers stop being true
A tagged link brings a visitor to your site. Consent decides what is stored. GA4 records events and credits the right campaign.

Part 1: events and key events in GA4

Google Analytics 4 records everything as an event: a page view, a scroll, a click, a form submit, a purchase. Some events are collected automatically. Others you add with Google Tag Manager or your site platform.

The events that matter most to you are marked as key events. GA4 used to call these conversions. They were renamed, and existing ones carried over automatically. Google Ads still uses the word conversion, and a GA4 key event does not count in Google Ads until you import it there.

  1. Pick a few key events

    Choose the actions that mean real progress: a purchase, a lead form submitted, a demo booked, a sign-up. Three to five is plenty. Page views and scrolls are not key events.
  2. Make sure the event fires

    Use Tag Assistant or GA4's DebugView to complete the action yourself and watch the event arrive with the right name and details.
  3. Mark it as a key event

    In GA4 admin, under events, mark the event as a key event. For purchases, send the value and currency so revenue reports work.
  4. Check it the next day

    Compare GA4's count with your own records, such as orders in your store or leads in your CRM. A gap of more than a few percent means something is broken or blocked.

When someone clicks a link in your email, social post or ad, UTM parameters on the end of the link tell GA4 where the visit came from. Example:

https://example.com/spring?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale

  • utm_source: where the click came from, such as newsletter, linkedin or a partner name.
  • utm_medium: the type of channel, such as email, paid_social, cpc or referral.
  • utm_campaign: the specific campaign name.
  • utm_content and utm_term are optional, for telling apart two buttons or ad versions.

Rules that keep reports clean:

  • Values are case-sensitive. utm_medium=Email and utm_medium=email become two rows. Use lowercase always.
  • Use one source name per platform and one medium name per channel type.
  • Keep all tags in a shared sheet so the whole team uses the same names. Google's Campaign URL Builder makes the links.
  • Never tag internal links on your own site. It overwrites the real source.
  • Google Ads auto-tagging handles Google ads for you. Do not add manual UTMs there unless you have a reason.

Results show in GA4 under Acquisition, Traffic acquisition. Missing tags show as not set.

Privacy laws in many places, including the EU, the UK and several US states, require permission before setting tracking or advertising cookies. You need a consent banner from a consent management platform, and you need your tags to respect the choice.

Google's consent mode passes the visitor's choice to Google tags using four signals:

  • analytics_storage: analytics cookies.
  • ad_storage: advertising cookies.
  • ad_user_data: sending user data to Google for ads.
  • ad_personalization: remarketing and personalized ads.

Set defaults before any tag loads, usually denied where consent is required, then update them when the visitor chooses. When consent is denied, Google tags send limited cookieless signals, and GA4 can fill some gaps with modeled data. Consent mode does not replace getting consent. It only makes your tags obey it.

Part 4: email that reaches the inbox

Gmail, Yahoo and Microsoft's Outlook.com now enforce rules for senders. All senders need basic authentication. Bulk senders, those sending around 5,000 or more messages a day to one provider, face the strict version:

RequirementWhat it means
SPFA DNS record listing which servers may send for your domain
DKIMA digital signature on each message, checked against your DNS
DMARCA DNS policy that ties SPF or DKIM to your visible From domain. A policy of none is the minimum.
AlignmentThe domain in your From address must match the domain that passed SPF or DKIM
One-click unsubscribeMarketing mail needs the standard list-unsubscribe header so users can leave in one click
Honor opt-outs fastProcess unsubscribes within two days
Low spam complaintsKeep the user-reported spam rate below 0.1%, and never let it reach 0.3%

Set up SPF, DKIM and DMARC with your email platform's guide, using your own domain, not a free mailbox address. Watch your spam rate in Google Postmaster Tools. Mail that fails these checks goes to spam or is rejected outright.

Checklist

  • Three to five key events chosen, tested and marked in GA4
  • GA4 counts compared with real orders or leads
  • Shared UTM naming sheet, all lowercase, used on every external link
  • No UTMs on internal links
  • Consent banner live where required, consent mode defaults set before tags load
  • Tags tested to confirm they respect a denied choice
  • SPF, DKIM and DMARC passing and aligned on your sending domain
  • One-click unsubscribe working and opt-outs processed within two days
  • Spam rate monitored and kept below 0.1%