Set Up GA4 for Accurate Campaign Analytics

Set Up GA4 for Accurate Campaign Analytics
Share this postFacebookLinkedInXEmail

If your analytics setup is even slightly off, every decision about campaigns, budgets and channels rests on bad numbers. This guide shows you how to set up Google Analytics 4 from a new account to a working data stream, then how to tag campaigns and choose an attribution model so the analytics data you report matches what sales and finance see.

Setting up a Google Analytics 4 property and data stream for accurate campaign tracking

Before you start: write a short tracking plan

A tracking plan is one page that says what you measure and why. Before you open the analytics tool, list:

  • Your business objectives, such as purchases, quote requests or booked calls.
  • The actions that show progress toward them, such as a pricing page view or a form start.
  • The channels you will run: search, social, email, partners and offline.

Each goal becomes an event in GA4. Doing this first keeps the setup focused and your reports free of noise.

Step 1: Create a Google Analytics account and property

Anyone with a Google account can get started with Google Analytics, and it works on almost any website or app. If you already have an analytics account, skip to creating the property.

  1. Go to analytics.google.com and sign in. Click Start measuring to create your account.
  2. Enter an account name, usually your company name. One account can hold several properties, so accounts and properties map to the business and its sites.
  3. Create a new Google Analytics 4 property. Give it a property name such as “Company website”.
  4. Set the reporting time zone and currency. Match them to your ad platforms and bookkeeping. If you need to change the time zone later you can, but past report data will not shift.
  5. Accept the Analytics terms of service.

If you have an existing Google Universal Analytics property, it no longer processes data. A UA property cannot be converted, so create a new Google Analytics property instead. In an existing account, open Admin, then use Create to add a Google Analytics 4 property.

Step 2: Add a data stream

A data stream is the source that sends events to your GA4 property. Adding a data stream is how you set up data collection.

  1. In Admin, under the property, choose Data streams. If you do not see the option, check that you are in the right property using the property selector at the top.
  2. Pick Web for a site. For an iOS app or Android app, GA4 collects data through Firebase.
  3. Enter your site URL and a stream name such as “Company.com production”.
  4. Leave Enhanced measurement on. It records scrolls, outbound clicks, site search and file downloads without extra code.

When the web stream is created, GA4 shows a Google tag ID that starts with G-. You need it in the next step.

Step 3: Install Google Analytics 4 on your site

There are three common ways to add the Google Analytics tracking to your pages. Pick one and use only one, or you will count every visit twice.

Option A: Your CMS or website builder

Most platforms have a field for it. In WordPress, Wix, Shopify or another website builder, find the Google Analytics setting and paste your Google tag ID. This is the fastest way to integrate Google Analytics 4 and needs no code.

Option B: Google Tag Manager

Can you use Google Analytics and Google Tag Manager together? Yes, and for most businesses it is the better choice. Add a Google tag in Google Tag Manager, enter the tag ID, set it to fire on all pages, and publish. Later changes, such as new events or ad pixels, happen in Tag Manager without touching the site.

Option C: Paste the code by hand

In the data stream, open View tag instructions and choose Install manually. Copy the snippet and paste your Google tag right after the opening head tag on every page. Older guides call these tracking codes or the GA4 tracking code. It is the same Google Analytics code.

To confirm it works, open your site in one tab and the Realtime report in another. Your own visit should appear within a minute.

Step 4: Configure events and key events

GA4 is event-based. A page view, a click and a purchase are all events. To get accurate campaign data you need to configure a few things after sending events begins.

  • Use standard event names. Names like generate_lead and purchase work with built-in reports. Avoid one-off names such as spring_campaign_form.
  • Add useful parameters. Attach value, currency or form name so you can segment results later. For ecommerce, send the recommended ecommerce events so revenue appears in reports.
  • Mark what matters. In Admin, under Events, mark your main goals as key events (GA4 used to call these conversions).
  • Extend data retention. In data collection and retention settings, change event data retention from 2 months to 14 months.
  • Filter internal traffic. Exclude your own office so staff visits do not inflate the numbers.

Step 5: Tag every campaign link with UTM parameters

GA4 can only credit a campaign if it knows where the visitor came from. UTM parameters are short tags added to a link that name the source.

  • utm_source: where the traffic comes from, such as google, facebook or newsletter.
  • utm_medium: the channel type, such as cpc, email or social.
  • utm_campaign: the campaign name, such as spring_sale_2026.
  • utm_term and utm_content: optional, for keywords and creative versions.

Three rules keep the data clean. Use lowercase only, because GA4 treats Facebook and facebook as two sources. Use underscores, not spaces. And agree on fixed values, so paid search is always cpc and email is always email. A shared spreadsheet with drop-down lists makes this easy for a team.

Tag links in paid ads, emails, partner placements and QR codes. Never put UTMs on links inside your own site. They overwrite the original source and make it look as if your homepage banner produced every sale.

Step 6: Choose an attribution model you can defend

Attribution decides which touchpoint gets credit for a key event. GA4 uses data-driven attribution by default, which spreads credit across the journey. You can compare it with last-click in the Advertising reports.

  • Short sales cycle: last-click is often close enough.
  • Longer sales cycle: use data-driven, and check which channels assist sales even when they are not the last touch.

Whatever you choose, link Google Ads and Search Console to the property and connect your CRM, so a lead can be followed from first click to paid invoice.

Common GA4 setup mistakes

  • Installing the tag twice, through both a plugin and Google Tag Manager.
  • Leaving the reporting time zone on the default.
  • Mixing uppercase and lowercase UTM values.
  • Never marking a key event, so campaigns have nothing to optimize toward.
  • Testing on the live property. Use a separate property for staging.

Frequently asked questions

Do I need Google Analytics?

If you spend money or time on marketing, yes. Without it you cannot see which channels bring customers.

Is Google Analytics 4 free?

The standard version is free and is enough for nearly every small business.

How long until data appears?

Realtime data shows within minutes. Standard reports can take 24 to 48 hours to fill in.

Where can I find official setup instructions?

Google publishes step-by-step guides in Analytics Help, and technical references on Google Analytics for Developers.

Get tracking you can trust

A correct GA4 property, consistent UTMs and a sensible attribution model are the base for every marketing decision that follows. If you would like the setup checked or built for you, schedule a call with our team.

Share this postFacebookLinkedInXEmail
// Enjoyed This Article?

Let's Put These Ideas to Work for Your Business

Schedule a free consultation and we’ll help you turn this into a concrete plan for your business.