Google Ads

Google Tag

Also called gtag.js, global site tag

Google's single website tag, also known as gtag.js, that sends visits and conversions from your site to Google Ads, GA4 and other Google products.

Quick facts: Google Tag

Category
Google Ads
Also called
gtag.js, global site tag
Level
Intermediate
Affects
Conversion tracking, remarketing audiences, GA4 data, automated bidding, cookie compliance
Where to see it
Google Tag Assistant, the Google tag screen in Google Ads or GA4, Google Tag Manager preview mode, browser developer tools
In this article4
  1. How the Google tag works
  2. Why it matters
  3. Common mistakes
  4. How to act on it

The Google tag is a single piece of JavaScript, known in code as gtag.js and formerly called the global site tag, that sends information from your website to Google Ads, Google Analytics 4 and other Google products. One installation can serve several Google accounts, which Google calls destinations.

How the Google tag works

Each Google tag has an ID: one starting “AW-” for Google Ads, “G-” for GA4, or a combined “GT-” ID. The tag loads on every page, records page views and, through events, records actions such as a form submission or a purchase. Google Ads uses those events as conversions; GA4 uses them for reporting.

You can install it in two ways. Paste the snippet into the head of every page, often through a CMS plugin, or deploy it through Google Tag Manager, which gives you more control over when tags fire. Either works; doing both at once does not.

The Google tag screen inside Google Ads and GA4 holds settings that used to need code, such as which domains count as one site for cross-domain tracking, whether to collect user-provided data for enhanced conversions, and which URL parameters to ignore.

The tag also stores Google’s click identifier in a first-party cookie, so a later conversion can be credited to the ad click that started the visit. In Tag Manager setups, a conversion linker tag does that job.

Why it matters

Without a working Google tag, Google Ads cannot see your conversions, and automated bidding is left guessing. A broken or duplicated tag is one of the most common reasons I find for an account reporting twice the sales the business actually made, or none at all.

For a UK site there is a legal side. The tag sets and reads cookies, and under PECR, advertising cookies need the visitor’s consent first. The tag should therefore either wait until a UK visitor has made a choice on your cookie banner, or run in Consent Mode, where it starts with storage denied and changes behaviour only once consent is given. Consent Mode uses four settings: ad_storage, analytics_storage, ad_user_data and ad_personalization. Google requires them to be passed for UK and EEA traffic if you want to use features such as remarketing.

At the time of writing (October 2026), the Data (Use and Access) Act 2025 is relaxing the consent rule for some low-risk analytics cookies, but advertising cookies still need consent. Check the ICO’s current guidance before changing your setup.

Common mistakes

  • Installing the tag twice, through a website plugin and through Tag Manager, so every conversion counts double.
  • Firing the tag before the cookie banner has been answered.
  • Consent Mode defaults set after the tag has already loaded, so the first page view ignores them.
  • Old tag IDs from a previous agency still sending data to accounts you no longer control.
  • Conversion events attached to a button click rather than a confirmed submission, so failed form sends are recorded as leads.

How to act on it

Open your site in Google Tag Assistant and note every Google tag ID it finds. Each should be one you recognise and own. Then accept and reject cookies on your own banner and check what fires in each case: with consent rejected, no advertising cookies should be set.

Submit a real test enquiry and confirm one conversion appears in Google Ads, not two. If anything looks wrong, fix the tag before changing bids or budgets, since every other decision depends on that data. I check this first whenever I take on an account through Google Ads management.

Do and do not

Do

  • Load the tag once per page, either in code or through Google Tag Manager
  • Set consent defaults to denied before any Google tag fires
  • Test with Tag Assistant after every site update

Do not

  • Install the tag twice through a plugin and GTM
  • Let advertising cookies be set before a UK visitor has chosen
  • Leave old tag IDs from a previous agency on the site

Questions people ask about this

Is the Google tag the same as Google Tag Manager?

No. The Google tag is a tracking script that sends data to Google products. Google Tag Manager is a container that loads tags, including the Google tag and tags from other companies such as Meta, under rules you set. You can use the Google tag on its own or deploy it through Tag Manager.

Do I need a separate tag for Google Ads and GA4?

Not any more. One Google tag can send data to both, with each account added as a destination. Many sites still have two older snippets installed, which works but adds weight and makes duplicated tracking more likely. Consolidate them carefully and test conversions afterwards.

Does the Google tag need cookie consent in the UK?

For advertising purposes, yes. PECR requires consent before storing or reading non-essential cookies, and Google's advertising cookies are not essential. Use a consent banner that blocks the tag, or Consent Mode with storage denied by default, until the visitor chooses.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.