Google Tag Manager, GA4 & Search Console Setup: Full 2026 Guide

Google Tag Manager, GA4 & Search Console Setup: Full 2026 Guide

If you install your tracking tools in the wrong order, you can break your data before you ever collect any. The order I use is always the same. Install Google Tag Manager first, then add Google Analytics 4 through GTM, then verify Google Search Console with that same GTM install, then add your Google Ads tag. Everything gets easier once Google Tag Manager is on every page of your website. This guide walks through the full setup step by step, including the WordPress plugin I use, how to confirm your tags are firing, and the mistakes that cause bad data.


1What each Google tool actually does

These four tools get lumped together constantly, and that is where most of the confusion starts. They do completely different jobs.

  • Google Tag Manager. The container that holds every tracking code on your website. Once GTM is installed, you add and update tags from the GTM dashboard instead of editing your website code every time.
  • Google Analytics 4. The analytics platform. It measures traffic, user behavior, key events, and where your visitors came from.
  • Google Search Console. Your organic search reporting. Impressions, clicks, average position, indexing status, and site health issues.
  • Your Google Ads tag. The tag that connects your Google Ads account to your website so conversions get attributed back to the right campaigns and keywords.

The reason the order matters is that three of these can be installed or verified through Google Tag Manager. If you put GTM on first, you never have to touch your website code again for the rest of the setup.

Question to Answer:

Do you know which of these four tools you already have installed on your website right now?

2Watch the full tutorial

I recorded the entire setup from a blank slate. I deleted my existing accounts before recording, so you are watching every account get created and every tag get installed in real time on a live WordPress site.

How To Install Google Tag Manager, Analytics 4, Search Console, and Google Tags

Question to Answer:

Are you setting this up on WordPress, Shopify, or a custom site, so you know which install method applies to you?

3What to gather before you start

Get your access sorted out first. It takes five minutes and it saves you from restarting the whole setup halfway through.

Use one Google account for all of it. Google Tag Manager, Google Analytics 4, and Search Console should all live under the same Google account. Search Console verification through GTM will not work if the accounts do not match.

Here is what you need before you begin:

  • Publish access in Google Tag Manager. Search Console specifically requires Publish or Admin permission on the container to verify ownership.
  • Admin access in Google Analytics 4. You need this to create the property and the web data stream.
  • Owner access in Search Console. If someone else already verified the property, they need to add you.
  • The ability to edit your site header and body. On WordPress that means admin access or a plugin. On a custom site it usually means FTP, SFTP, or a file manager.

One more check before you install anything. Look at whether Google Analytics is already hard-coded into your theme. If it is, remove it when you publish GTM. Running Analytics twice gives you duplicate pageviews and inflated session counts, and it is one of the most common reasons data looks wrong later.

Question to Answer:

Is there any existing Analytics or tracking code already hard-coded into your website theme?

4How to install Google Tag Manager on your website

Google Tag Manager comes first every single time. It becomes the home for everything else you add.

  1. Go to tagmanager.google.com and sign in with the Google account you are using for all three tools.
  2. Click Create Account. Enter your business name as the account name.
  3. Name the container after your website, like yoursite.com, and choose Web as the platform.
  4. Click Create and accept the terms of service.
  5. GTM gives you two code snippets. Copy both.

The first snippet is a script that goes in the <head> section of your website. The second is a <noscript> snippet that goes immediately after the opening <body> tag. That placement is not a suggestion. Search Console checks for the noscript snippet in that exact position when you verify ownership later, and it will fail if anything sits between the body tag and the code.

"Placing these within your website's header and body allows for centralized tag management. This approach streamlines the installation of all tags, including conversion tags and your GA4 configuration."

Corey Frankosky, Surfside PPC

Question to Answer:

Do you have both GTM snippets copied and a place to paste them on every page of your site?

5Installing GTM on WordPress, Shopify, and other platforms

WordPress. There are a lot of ways to do this, and the plugin I use is WP Code. Go to Plugins, click Add Plugin, search for WP Code, then install and activate it. Once it is active you will see Code Snippets in the left-hand sidebar. Click that, then click Header & Footer. Paste the head snippet into the header field and the body snippet into the body field, then save changes.

I like WP Code because the pixels sit in one place and I never have to think about them again. As long as nobody goes in and deletes them, your tags stay live through theme updates. Google Site Kit works basically the same way if you prefer connecting directly to Google.

Shopify. You have to edit the theme code, and you also need to add the tag to the checkout page separately. Skipping the checkout page is how you end up losing purchase data.

Squarespace, Wix, Thinkific, and other builders. Almost all of them have a custom code or custom pixel field somewhere in the settings. Thinkific required editing the theme directly the last time I set one up. If you cannot find it, search for the platform name plus "install Google Tag Manager" and the documentation will point you to the right field.

Whatever platform you are on, the container has to be on every page. If your interior pages are missing GTM, you get gaps in traffic and event data that do not show up right away and are painful to diagnose later.

Question to Answer:

Have you confirmed the GTM container loads on your homepage, a service page, and a blog post, not just the homepage?

6How to create your GA4 property and find your Measurement ID

With GTM live, go to analytics.google.com. If you already have properties, click the Admin gear in the bottom left and choose to create a new account. If the account is brand new, Google usually walks you straight into the setup flow.

  1. Enter your account name. I use the website domain so it is obvious later.
  2. Leave the data sharing settings as they are unless you have a specific reason to turn something off.
  3. Set your property name, reporting time zone, and currency. Get the time zone right the first time, because changing it later splits your historical reporting.
  4. Fill in the business details and objectives. Generate leads and understand web traffic covers most small business setups.
  5. Choose Web as the platform, enter your website URL and stream name, then click Create stream.

GA4 will pop up a "Set up your Google tag" window. Close it. What you actually need is the Measurement ID, which starts with G-.

If you lose that screen, go to Admin, then Data Streams, and click your web stream. Data streams is just GA4's word for your website. The Measurement ID sits in the top right. While you are in there, check that enhanced measurement is on and every event type is toggled on. It does not hurt to measure everything, and more events on your site means more you can work with later.

Copy the Measurement ID. GA4 will say data collection is pending. That is expected, since you have not connected it yet.

Question to Answer:

Do you have your GA4 Measurement ID copied, and does it start with G- rather than AW- or GTM-?

7How to add the GA4 Google tag inside Google Tag Manager

Head back to your GTM workspace. It will say there is no recent data, which is fine.

  1. Click Tags, then New.
  2. Name it something obvious. I call mine "Google Analytics 4 Tag."
  3. Click into Tag Configuration and choose Google Tag. It is called a Google tag, but it is the tag associated with your Google Analytics 4 data stream.
  4. Paste your Measurement ID into the Tag ID field.
  5. Set the trigger to Initialization - All Pages so the tag loads early on every page.
  6. Click Save.

Before you publish, click Preview in the top right, enter your site URL, and connect. Tag Assistant should show Connected, and your Google tag should appear under Tags Fired. That thirty second check saves you from publishing something broken.

When it looks right, click Submit and then Publish. Give the version a clear name with the date, something like "GA4 Setup 08/17/2026." When you are troubleshooting six months from now, you will be glad the versions are labeled.

Now refresh your website and open the Tag Assistant Chrome extension. You should see two tags: your Google Tag Manager container and your Google tag. Google deprecated that extension for a while and brought it back after enough people complained, so make sure you have the current version installed.

Question to Answer:

Does Tag Assistant show both your GTM container and your Google tag on the live site?

8How to verify Google Search Console with GTM

This is the easiest step in the whole process if you did the first two correctly.

Go to Google Search Console and click Add property. You will see two property types. Choose URL prefix, not Domain. The GTM verification method only works for URL-prefix properties.

Enter the full URL including https, then click Continue. Search Console will look for your live GTM snippet and verify automatically. You should see ownership auto-verified with Google Tag Manager listed as the verification method.

For that to work, three things have to be true:

  • The GTM script is in the head. Exactly as Google provided it, with no modifications.
  • The noscript snippet is immediately after the opening body tag. Nothing can sit between them, including a data layer.
  • You have Publish or Admin access to the container. Editor access is not enough.

If it does not verify, you have other options in the settings under ownership verification, including an HTML tag or an HTML file upload. But once GTM and GA4 are on the site correctly, you should not need them.

Search Console does not show up in Tag Assistant, so do not go looking for it. Verification is a one-time ownership check, not an ongoing tag. And your Performance data will not appear immediately. It takes a couple of days for meaningful data to start accruing in the property.

Question to Answer:

Is your Search Console property verified, and is it using the same Google account as your GTM container?

If you are running Google Ads, this is the step most people skip or get wrong. You need your Google Ads tag on the site, and it is not the same thing as your GA4 tag.

Find your conversion ID first. In Google Ads, go to Goals, then Conversions, then Summary. Open any website conversion action you have already created and scroll down to the tag setup section. Choose the Google Tag Manager option and you will see your conversion ID. It starts with AW- followed by a string of numbers.

Then go back to Google Tag Manager:

  1. Click Tags, then New. Name it "Google Ads Conversion Tracking Tag."
  2. Choose Google Tag and paste your AW- conversion ID into the Tag ID field.
  3. Set the trigger to Initialization - All Pages, the same way you did for GA4.
  4. Save, then Submit and Publish.

People ask why this is needed when GA4 is already installed. It is a different job. This tag links your Google Ads account to your website so that when someone completes a conversion action, Google Ads can attribute it back to the click that brought them there.

The conversion linker. While you are in there, add a Conversion Linker tag. Click Tags, New, choose Conversion Linker as the tag type, and set the trigger to All Pages. Leave "enable linking across all page URLs" on. If you have subdomains or other domains carrying your GTM container, you can extend linking across them.

Worth knowing: Google's documentation now says that if your container loads a Google tag on every page, you do not strictly need a separate conversion linker tag. I still add it. It costs nothing, it removes a variable when you are troubleshooting attribution later, and you will need it anyway once you start building out custom conversion tags.

Question to Answer:

Do you have your AW- conversion ID installed through GTM, separate from your G- Measurement ID?

10How to test everything and avoid bad data

Publish the container, then go check each tool. Do not assume it worked.

Open GA4 and go to Reports, then Realtime. Visit your own site in another tab and you should see an active user, a page_view event, and the correct page path within a minute or two. For a closer look, open DebugView and watch events fire with their parameters, including page_location.

Here is the full checklist:

Tool What It Does How You Know It Is Working
Google Tag Manager Holds and manages every tracking snippet on your site Tag Assistant shows the GTM container connected
Google Tag Sends measurement data into GA4 The Google tag fires in GTM Preview mode
Google Analytics 4 Measures traffic, behavior, and key events Active users appear in the Realtime report
Search Console Reports organic search performance and indexing Ownership verified, Performance data appears in a few days
Google Ads Tag Attributes conversions back to campaigns and keywords The AW- tag fires in GTM Preview mode

If something is not showing up, these are the usual causes:

The five things that break tracking setups

  • Mismatched IDs. The Measurement ID in GTM does not match the one in GA4 Data Streams. Compare them character by character.
  • Unpublished container. The tag was saved in GTM but Submit was never clicked. Saving is not publishing.
  • Wrong code placement. The snippets were pasted outside the head or not immediately after the opening body tag.
  • Duplicate Analytics code. A hard-coded GA tag is still in the theme alongside the GTM version, which inflates your numbers.
  • Missing on interior pages. The container is on the homepage but not on service pages or blog posts.

One last thing that trips people up. Tag Assistant does not always update instantly because of browser caching. If you just published and the new tag is not showing, clear your cache or open the site in a new window before you start troubleshooting something that is already working.

Question to Answer:

Can you see active users in GA4 Realtime and all of your tags firing in GTM Preview mode right now?

In Summary

The whole setup comes down to one idea. Put Google Tag Manager on every page first, then run Google Analytics 4, Search Console verification, and your Google Ads tag through that single container. You edit your website code once and manage everything else from the GTM dashboard.

Once it is live, confirm it. GA4 Realtime should show active users within minutes. Search Console will take a couple of days to fill in. Your tags should all show as fired in GTM Preview mode. If any of those checks fail, work through the five common causes above before you rebuild anything.

This is the minimum tracking stack every small business website should have running. It does not cover key events or conversion actions yet, and that is the next step once your foundation is clean. If you want help getting your tracking and campaigns set up correctly, schedule a free consultation and we can take a look at your account.

0 comments

Leave a comment