The Google tag, also called gtag.js, is Google’s code that connects your website to Google Analytics 4 and Google Ads. You install a snippet on every page, and it starts sending visits and events to the accounts you’ve set up. It’s different from Google Tag Manager: the Google tag sends data to Google products, while Tag Manager is a manager that can hold the Google tag along with tags from other tools.
The names are confusing because they sound alike. “Google tag” gets 2,400 searches a month in Brazil, and most people searching for it actually want to decide between installing the tag directly on their site or using Tag Manager. This article settles that question.
What the Google tag does
The Google tag loads the gtag.js library and sends data to one or more destinations, identified by their ID:
- G- for a Google Analytics 4 property;
- AW- for a Google Ads account;
- GT- for a Google tag that groups multiple destinations.
The same tag can send data to GA4 and Google Ads at the same time. You manage this inside Google Ads or GA4 itself, in the Google tag section.
How to install the Google tag
- In GA4, go to Admin, Data Streams, open your Web stream, and click View tag instructions. In Google Ads, it’s under Tools, Google tag.
- Choose to install manually and copy the code.
- Paste the code right after the head section opens, on every page. In WordPress, Site Kit does this without touching your theme.
- Check it in GA4’s Realtime report or with Tag Assistant.
Google tag or Google Tag Manager?
| Situation | What to use |
|---|---|
| Just want Google Analytics, without custom events | Google tag directly on the site |
| Uses Google Ads with conversions | Tag Manager |
| Also uses Meta pixel, Clarity, LinkedIn | Tag Manager |
| Needs to measure WhatsApp clicks, forms, scroll on a section | Tag Manager |
| Changes tags often and doesn’t want to depend on a developer | Tag Manager |
In practice, anyone running ads almost always ends up using Tag Manager. The Google tag still exists, just inside it: in Tag Manager, you create a tag of type Google tag, with the G- ID, firing on all pages. How to set up the container is covered in Google Tag Manager: what it is and how to install it.
The mistake we see most: everything installed three times
A typical WordPress site can end up with the Google tag installed by the theme, by an SEO plugin, and by Tag Manager, all at once. Each path loads the library again, the site gets slower, and depending on the setup, visits get counted twice.
To check:
- Open the site with Tag Assistant and see how many times the Google tag shows up.
- Look through your plugins for “install Analytics code” options and turn off the extra ones.
- Pick one path, preferably Tag Manager, and keep the Google tag only there.
Google tag and Google Ads conversions
Google Ads conversion tracking works in two parts: the Google tag, which loads on every page, and the conversion event, which fires on the right action (form submission, thank-you page, purchase). Without the event, the tag only logs visits. The step-by-step guide using Tag Manager is in Google Ads conversion tracking with Tag Manager.
Frequently asked questions
Is the Google tag the same thing as Google Analytics? No. The tag is the code that collects and sends data. Google Analytics is where the data lives and turns into reports. See what Google Analytics is.
Can I have the Google tag and Tag Manager on the same site? Yes, as long as they don’t send the same data to the same destination. The safest approach is to keep the Google tag only inside Tag Manager.
What is the GT- ID? It’s a Google tag identifier that can group multiple destinations. WordPress’s Site Kit, for example, usually creates one. It doesn’t replace the property’s G- ID.
Want someone to clean up your site’s tags? Ciclicko’s conversions and CRM service removes duplicates, puts everything in one place, and tests every conversion.