Google Analytics 4 and Tag Manager Tracking: A Practical Field Guide

If you already use Google Analytics to monitor what visitors do on your site, you are ahead of many business owners. The harder part is trusting what the reports say. Google Analytics 4 (GA4) only reports what it has been set up to collect, and it can only credit a marketing channel when the visit arrives with enough information to identify it.

This guide walks through the setup work that makes GA4 data reliable: deciding what to track, turning site actions into events and conversions with Google Tag Manager, passing custom data through the data layer, repairing traffic attribution, reading engagement metrics, and settling on how often to look at it all.

In this guide

What to track with events and key events

Companies generally use Google Analytics for five things:

  1. Traffic analysis: how many visitors come to the site, where they come from, and how that changes over time.
  2. User behavior: which pages visitors view most, how long they stay, and the paths they take through the site.
  3. Conversion tracking: the rate at which visitors complete the actions you want, such as making a purchase or signing up for a newsletter.
  4. Content performance: which content resonates with your audience, to inform what you publish next.
  5. Technical performance: site speed, mobile responsiveness and other technical factors that affect user experience and search rankings.

The third item is where most of the setup effort goes. GA4 records visitor actions as events. The events that matter most to your business (purchases, sign-ups, video completions and the like) are marked as key events.

“Key events” is the term GA4 adopted in 2024 for what it used to call conversions. It was a change of terminology, not a major overhaul. Previously, GA4 and Google Ads could use slightly different definitions of “conversion”, which caused confusion when comparing data across the two platforms. Key events give the important interactions one consistent definition.

The practical benefits:

  • Clearer cross-platform measurement. You can track important user actions across all channels, not only those that start with Google Ads.
  • Broader reporting. You can analyze a wider range of interactions, not only final actions like purchases, which lets you optimize campaigns for different stages of the customer journey.
  • Easier collaboration. With one shared vocabulary, conversations about engagement are simpler, both inside your team and with outside partners.

Two housekeeping steps follow from the change:

  • Review your existing goals. Make sure the conversion goals in Google Ads line up with the appropriate key events in GA4.
  • Import key events. Import the relevant key events from GA4 into your Google Ads account so that campaign measurement matches what GA4 reports.

Setting up event and conversion tracking

Google uses different words for closely related things across its platforms, and the vocabulary trips up many marketers. Before building anything, it helps to be able to tell apart:

  • An event tag in Google Tag Manager and an event in Google Analytics
  • An event and a key event in Google Analytics
  • A key event in Google Analytics and a conversion in Google Ads
  • A primary conversion and a secondary conversion in Google Ads
  • The effects of the Conversions filter and the All Conversions filter in Data Studio reports

This video uses simple diagrams to show how events and conversions are tracked and named across Google Tag Manager, Analytics, Ads and Data Studio (the video uses the name Looker Studio, which Google changed back to Data Studio in April 2026). It is aimed at beginning and intermediate digital marketers.

What Google Tag Manager adds

Google Analytics on its own gives you standard reports, plus customized reports you build yourself with the Explore feature. Configuring Google Tag Manager and linking it with Google Analytics opens up capabilities you cannot get with Analytics alone. In particular, you can set up custom events that are triggered when visitors take the actions you consider significant to your business.

Tag Manager works with data that is passed from the website’s server to Google Analytics when visitors view certain pages or take actions such as clicking links, viewing videos and submitting forms. That data takes the form of variables.

Many variables are built in and need no special configuration, including:

  • Click Text: the text embedded in a button a user clicks on
  • Click URL: the URL of the link a user clicked on, leading to another page on the site (or off-site)
  • Page Path: the portion of the URL that comes after the domain of the page being viewed (for example, /contact-us or /services)
  • Page Hostname: the primary domain of the URL, without the additional path information (for example, mysite.com)

From event to conversion

The chain runs in one direction:

  1. An event is set up in Google Tag Manager and the changes are published to your Tag Manager container.
  2. When a visitor takes the action on your website, the event fires and its data is passed to Google Analytics.
  3. In Google Analytics, you view the event and mark it as a key event.
  4. In Google Ads, you import the key event as a conversion, so that Google Ads can optimize toward attracting more traffic like the traffic that converted.

Sending custom data with the data layer push

Built-in variables cover clicks and page views. Sometimes you want to act on much more specific data about each visitor’s session. On an ecommerce site, for example, you might want:

  • User ID
  • Product ID
  • Item price
  • Transaction_id
  • Tax
  • Shipping
  • Currency

To get data like this into Google Analytics, your website has to “push” it at the right moment. That is done with a Google Tag Manager feature called the data layer.

Data layer view

Think of the data layer as a special communication channel between your website and Google Analytics. Through it, you can configure your website to pass certain session-specific variables to Google Analytics.

The data layer push snippet

You will need your web developer’s help for this step. The developer adds what is called a data layer push snippet, written in JavaScript, a popular language for websites.

Once it is set up properly, your server pushes certain details (variables) about the page in question to Google Analytics, so that you can use that data in your reports, site strategy and advertising campaigns.

An example snippet

Say your company makes posters of national and state parks and sells them directly on your website. One of your products is a poster of Lake Tahoe’s scenic Emerald Bay for $19.99. To get better tracking, you ask your developer to add a data layer push that sends data to Google Analytics when the user adds the product to their shopping cart.

Here is how that data layer push snippet might look:

<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: "add_to_cart",
ecommerce: {
currency: "USD",
value: 19.99,
items: [
{
item_id: "SKU_87893",
item_name: "Emerald Bay Poster",
price: 19.99,
quantity: 1
}]
}
});
</script>

Turning data layer variables into events

Once your developer has added the snippets for your products, the data layer is ready to pass the relevant variables to Google Analytics. At this point the data is still passive. It is nice to reference, but it may not help you do better marketing.

To make data layer variables useful, set up specific events in Google Tag Manager that fire based on conditions around a data layer variable.

Choose a data layer as a custom variable

Continuing the poster example, say you want an event to fire in Google Analytics if the price of a poster added to the shopping cart is over $15.00. You would set up a custom event whereby:

“price” > 15

Once you have set up this event and published the changes to your Google Tag Manager container, it passes the event data to Google Analytics whenever it fires on your website. From there it follows the chain described above: view the event in Google Analytics, mark it as a key event, and import it into Google Ads as a conversion.

Fixing Unassigned traffic

Tracking the right actions is half the job. The other half is knowing which channel sent the visitor. In GA4 reports you may notice a category called “Unassigned” under the “Session primary channel group” dimension, sitting alongside familiar ones such as Organic Search, Referral, Direct and Paid Search.

Unassigned traffic is made up of visits that GA4 cannot attribute to a specific source or medium within its default channel groupings. It is traffic that does not fit the predefined categories. You will typically see it in GA4’s Acquisition reports, particularly the “User acquisition” and “Traffic acquisition” sections.

Why it is a problem

  • Incomplete data. A large amount of Unassigned traffic means you are missing information about where visitors come from.
  • Inaccurate attribution. Without a source, you cannot assess the performance of your marketing channels accurately.
  • Inefficient budget allocation. If you do not know which channels drive traffic, you may put budget in the wrong place.
  • Skewed analytics. Unassigned traffic distorts the overall picture and can lead to misguided decisions.

How to reduce it

  1. Implement proper UTM tagging. Make sure all your marketing campaigns use correct and consistent UTM parameters. Use Google’s Campaign URL Builder to create properly formatted tracking URLs.
  2. Check your cross-domain tracking. If you have multiple domains or subdomains, make sure cross-domain tracking is set up correctly in GA4.
  3. Review your unwanted referrals list. In the tag settings of your web data stream, use “List unwanted referrals” to name the domains that should not count as referral sources, such as your own domains and your payment processor.
  4. Check your Reporting Identity setting. GA4 offers three options: “Blended”, “Observed” and “Device-based”. Blended fills gaps with modeled data, while Device-based uses only the device ID. If your channel numbers look off, compare the report under each setting; changing it does not alter the data GA4 has collected, only how it is presented.
  5. Create custom channel groupings. Set up custom channel groups in GA4 to capture traffic sources that do not fit the default categories.
  6. Address technical issues. Confirm that your GA4 implementation is correct and that there are no conflicts with ad blockers or privacy tools.
  7. Audit your data regularly. Review your traffic sources consistently and investigate any sudden increase in Unassigned traffic.

Tracking Facebook visits with UTM parameters

A common attribution complaint is that Facebook traffic numbers in Google Analytics do not match what Meta Ads Manager shows. Proper URL tracking solves most of it.

The underlying issue is that Google Analytics cannot automatically distinguish between organic Facebook posts and paid Facebook ads. Without UTM parameters, both appear as generic “facebook.com” referrals in your reports. If you run organic and paid activity at the same time, the data is muddled, and you cannot see the true effect of either.

Separating them lets you:

  • Make budget decisions based on data
  • See which content resonates with your audience
  • Follow the customer journey from first click to conversion
  • Justify your social media spending to stakeholders
  • Stop spending hours trying to reconcile mismatched numbers

The three essential parameters

UTM parameters are snippets of code added to the end of a campaign’s destination URL, solely to identify the traffic source. Three matter most:

  1. utm_source: tells GA4 where the traffic comes from. For Facebook traffic, use “facebook”. This parameter answers the question, “Which platform sent this visitor?”
  2. utm_medium: indicates the type of traffic. Use “paid-social” for your ads and “organic-social” for regular posts. This is what separates paid from organic traffic in your reports.
  3. utm_campaign: your campaign name. Make it descriptive and consistent, for example “summer-sale-2026” or “product-launch-march.”

Here is what a basic tagged URL might look like:

www.yoursite.com/page?utm\_source=facebook&utm\_medium=paid-social&utm\_campaign=fall-sale-2026

Two more parameters for advanced tracking

  1. utm_content: use this to specify your ad set. You can dynamically insert the ad set name using {{adset.name}}. This shows which ad sets perform best.
  2. utm_term: this parameter can identify individual ads using {{ad.name}}. It is particularly useful when A/B testing different ad creative or copy.

You can also dynamically insert the placement using {{placement}} in your utm_medium parameter, which gives you more granular data about where your ads appear.

Here is what a fully tagged URL looks like:

www.yoursite.com/page?utm\_source=facebook&utm\_medium=paid-social&utm\_campaign=fall-sale-2026&utm\_content={{adset.name}}&utm\_term={{ad.name}}

Whatever values you choose, use the same ones every time. Setting this up can feel tedious, but an hour spent on tagging now is far cheaper than spending on campaigns you cannot evaluate later.

Reading engagement metrics

User engagement is how much your visitors interact with your website. GA4 counts a session as engaged when the visitor does any one or more of these things:

  1. Stays longer than 10 seconds
  2. Triggers a key event (such as a purchase or a form submission)
  3. Views two or more pages or screens

Engagement rate is the share of sessions that were engaged.

This gives you a concrete way to measure how well the site keeps visitors interested and active.

There are two routes to better engagement, and they are not either/or:

  1. Drive more high-quality traffic to your website
  2. Make your website more engaging

The attribution work in the previous sections serves the first route, because it shows which sources send visitors who engage. The second route is a matter of web design. Even the best traffic will not stay if the site is not up to par.

Seven web design goals that support engagement

  1. Speed it up. Slow pages lose visitors before they see anything.
  2. Make it mobile-friendly. The site needs to look good and work well on screens of all sizes.
  3. Keep navigation clear. Do not make visitors play hide and seek. Keep the menu simple and intuitive.
  4. Put compelling content above the fold. The content visible without scrolling should earn attention immediately.
  5. Use white space wisely. Give content room to breathe. A cluttered design overwhelms visitors.
  6. Keep branding consistent. Consistent colors, fonts and tone build trust and recognition.
  7. Use strong calls to action. Tell visitors what to do next with clear, attractive calls to action.

Effective web design is not only about appearance. It is about creating an experience that keeps visitors on the site and brings them back. If your engagement metrics are weak and your traffic sources are sound, take a critical look at the design.

How often to review your analytics

There is no one-size-fits-all answer. Some companies check monthly, some weekly, some daily. Others check more often while a special online campaign is running and less often the rest of the time.

How often you should look depends on factors like these:

  1. How much the success of your business depends on the quantity and quality of website traffic
  2. How much you spend overall each month on driving traffic to your website
  3. How much you are spending right now, relative to your usual spend
  4. How frequently you change your website, such as adding new sections or features or changing page layouts
  5. Whether you have had website performance issues recently, such as slow page load times
  6. Whether employees or customers have complained about the website’s functionality
  7. Whether you are actively testing specific changes to your messaging for better engagement
  8. Whether you are running A/B tests on specific landing pages to compare performance
  9. Whether you have launched a new location or expanded into new geographical regions and want to check engagement in those areas
  10. Whether you are actively benchmarking your site’s performance against other sites

What to check first

Google Analytics offers hundreds of dimensions to monitor. If you are fairly new to it, we suggest starting with:

  • Sessions
  • Engagement rate
  • Events per session
  • Average session duration
  • Views by page (your most-visited pages)

If you are running a special promotion, focus on the affected pages in more detail.

Apart from special campaigns, set a schedule and stick to it. A regular cadence is also the simplest way to catch a tracking problem early, such as a sudden rise in Unassigned traffic. For specialized reporting that is easy to share with others, consider connecting Google Analytics to Data Studio (formerly Looker Studio).

Getting help with your tracking

Reliable analytics comes from a handful of unglamorous jobs done properly: choosing the right key events, wiring them up in Tag Manager, pushing the right variables through the data layer, tagging every campaign URL, and reviewing the results on a schedule.

Ambient Array sets up and maintains this kind of tracking for clients, including data layer push snippets, custom event tracking, and reports and dashboards built on key event data. See our Google Tag Manager services for details, or contact us to talk through your setup.

Start the Conversation

Ready to obtain strategic clarity for your marketing machine—or to build a new one from scratch? Start the conversation with (human-powered, data-infused) Ambient Array today.