Conversion Tracking & Data

Google Tag

Also called gtag.js

By the AdFlint research team · Last reviewed November 2026

A single site-wide snippet, gtag.js, that collects measurement data and routes it to Google Ads and Analytics destinations.

One tag on every page handles page views, conversions, and the linker that preserves the gclid in a first-party cookie, then distributes data to whichever destination IDs you configure. It is the simplest correct install for a site without a tag manager. The usual failure is leaving legacy conversion snippets in place next to it, which produces duplicate conversions, or omitting the tag from the actual confirmation page.

Key takeaways

  • The Google tag (gtag.js) is one site-wide snippet that sends data to Google Ads, Analytics, and other Google destinations.
  • One tag ID can connect to several destinations, and the old global site tag has evolved into it.
  • It can only send data to Google products, unlike Tag Manager, which also deploys third-party tags.
  • Leftover legacy conversion snippets next to the Google tag are a leading cause of duplicate conversions.

In practice.

The Google tag is a single piece of JavaScript, gtag.js, that you add to your website to send data to Google products. Google describes it as one tag that supports multiple products and services, and it sends website data to linked destinations to help measure your site and ads. You can configure it from inside Google Ads, Google Analytics, and Campaign Manager 360. Each Google tag has one tag ID, and you can connect that single ID to several destinations, so one install can feed several products. The tag ID is how everything connects. You copy it from Google Ads, Analytics, or another Google product, and the same snippet then serves all of them. Adding a new product later means connecting another destination in the interface, not editing the page.

Under the hood, the tag loads on each page and sends events, such as page views and conversions, to whichever destinations you have connected. A destination ID identifies the product that receives the data. For Google Ads the destination is your conversion tracking ID, and for Google Analytics it is the web data stream's Measurement ID. Tag IDs have prefixes such as GT, G, and AW. Google says the older global site tag has evolved into the Google tag, and if you already had a global site tag you do not need to update your site to use it. Tag IDs begin with prefixes that hint at their source, such as G for Analytics and AW for Google Ads. That is useful when you audit a site and find several different IDs, because each one belongs to a destination you can check.

Compared with Google Tag Manager, the Google tag is a code-first approach. Google's comparison says gtag.js needs one snippet per page, takes some JavaScript comfort to customize, and can only send data for Google products. Tag Manager takes two snippets, supports third-party and custom tags, and offers workspaces and version control. The Google tag works well with static sites, many content management systems, and hand-written HTML. Both are free. If your site only uses Google Ads and GA4, the Google tag is the simplest correct install. For a brochure site or a small shop on a hosted platform, a built-in integration often installs the Google tag for you. You still need to confirm it is configured with the right destinations and that no second copy is hiding in the theme.

Two failures account for most broken measurement. The first is leaving old conversion snippets on the page next to the Google tag, which can record the same sale twice. The second is putting the conversion event only where it never fires, for instance omitting the tag from the real confirmation page or firing the event on a page people can reload. Google also says that if you have more than one tag on your site, you can combine your Google tags for better data. Having several unrelated installs for the same destination causes confusion. Even a clean install can record a conversion on the wrong action. A tag on the confirmation page is only correct if the page loads once per real outcome and not when someone bookmarks or reloads it.

To check your install, use Tag Assistant and confirm your tag ID appears in the tags found header when you load a page. Then complete a test conversion and see that it shows up in Google Ads under the conversion action's status. This week, view the source of your confirmation page, count how many Google tags and conversion snippets are there, and remove duplicates. If you expect to add Meta, TikTok, or other vendor tags soon, that is the moment to consider moving to Tag Manager. Keep a short log of what you changed and when, so that a sudden drop in conversions can be tied back to an edit instead of guessed at.

Worked example

A salon finds its bookings counted twice

Say a salon spends $1,500 a month on Google Ads and gets 50 online bookings. A previous web developer pasted an old conversion snippet onto the booking confirmation page, and a new Google tag was added site-wide later. Both fire when someone books.

Google Ads reports 100 conversions, so the cost per booking looks like $15 (1,500 divided by 100). The true cost is $30. After the owner removes the old snippet and keeps one conversion event, the account shows 50 bookings at $30 each. Bids set to a $15 target would have chased sales that never existed, so the cleanup matters more than any bid change. The owner also notes the change date, so the sudden halving of conversions in reports is understood as a cleanup and not a collapse.

Run the numbers yourself

UTM Builder for Paid Ads

Build clean campaign tracking URLs for Google, Meta, email, and influencer campaigns without breaking existing query parameters.

Open the free calculator

Google Tag compared with

The settings this gets confused with, and how to tell them apart.

Common questions.

Is the Google tag the same as gtag.js?

Yes. gtag.js is the code library behind the Google tag. Google says the earlier global site tag has evolved into the Google tag.

Do I need Google Tag Manager if I have the Google tag?

Not necessarily. The Google tag can only send data to Google products, so it is enough for a simple Google Ads and GA4 setup. Tag Manager helps when you run third-party tags or want version control.

Where does the Google tag go on my site?

It goes on every page you want to measure, usually in the site-wide header. Conversion events then fire on the specific page or action that counts as the outcome.

How do I know if my Google tag is working?

Connect Tag Assistant to your site and check that your tag ID appears in the Google tags found header. Then run a test conversion and check the conversion action status in Google Ads.

Sources

You should not need to know this to advertise.

AdFlint handles the settings for you, inside the Google and Meta accounts you already own.

Next step: How AdFlint tracks and optimizes these numbers

Try AdFlint free