What is a tag in Google Tag Manager?

Analytics & measurement

How do tags and triggers work?

A tag does nothing alone. A trigger tells it when to fire. Google's help says triggers cause tags to fire when certain events occur1. Typical events are a page load or a click.

Put plainly: the tag is the messenger, the trigger is the starting pistol, and the destination is whatever receives the data.

Why do tags matter for ecommerce?

Tracking is built from tags. If a purchase tag fires twice, revenue is counted twice. If it fails to fire, a sale vanishes from the report. Both change what you think your ads did, and what you do next with the budget.

Tags also pile up. Tools get added, trialled and forgotten. A checkout that still runs a tag from a tool nobody uses is slower and harder to read, and nobody can say who put it there.

Whether a tag may fire before a visitor agrees is a legal question: your counsel decides. Consent Mode is Google's mechanism that passes a visitor's consent choices to Google tags, which then change what data they send.

Our view: every tag on a checkout should have an owner and a reason to be there.

Our guide to an ecommerce tracking audit lists the checks that change a budget decision. You can start with a free measurement and tracking audit if you would rather not check alone.

For where tags are set up and who should have access, see Google Tag Manager for ecommerce.

Worked example

Easily confused with

  • Tag vs Google tag

    A specific Google product, not the general idea of a tag. Tag Manager is the tool that manages tags. They are three different things.

  • Tag vs Tracking pixel

    A snippet that sends visitor actions from the browser to an ad platform. A pixel is often run through a tag, so the words get mixed up. We keep them apart.

  • Tag vs HTML tag

    Markup that structures a web page. It has nothing to do with tracking.

  • Tag vs Server-side tracking

    Collecting data on a server you control and passing it on, instead of running every tag in the visitor's browser. It changes where tags run, not what a tag is.

FAQ

A rider in a red cape and bicorne hat on a rearing yellow plush horse, after David's Napoleon Crossing the Alps

What is the difference between a tag and a trigger?

The tag is the code that sends data. The trigger is the event that tells it to fire, such as a page load or a click.

Is a tag the same as a pixel?

No. A pixel is one kind of snippet that sends visitor actions to an ad platform. Tag is the wider word. We use them separately.

Can I have too many tags?

Yes. Unused tags add clutter and can double-count or break reporting. Keep the ones with an owner and a reason.

Sources

  1. About Tags - Tag Manager HelpPrimary source

Let’s find what’s actually working.

Next step. Not sure your tracking counts each sale once? Start with our measurement and tracking audit.