Skip to content

What is a tag in tracking?

A tag is a snippet of code on your website that sends information to another tool, such as an analytics or advertising platform. Tags record actions like page views and form submissions and are usually managed through a tag manager.

Last reviewed .

How tags work

A tag runs when its conditions are met, for example when a page loads or a button is clicked. It collects details and sends them to the connected platform.

Pixels, analytics scripts, and conversion snippets are all kinds of tags.

Managing tags

A tag manager such as Google Tag Manager keeps tags in one place and controls when each fires. That's easier to maintain than pasting separate snippets into your site's code.

Too many tags can slow your pages, so remove ones you no longer use.

Testing tags

Confirm each tag fires at the right moment, only once, and with the right data. Use preview tools and the receiving platform's reports, and recheck after site updates.

Common questions

What's the difference between a tag and a trigger?

A tag is the code that does the work. A trigger is the condition that tells the tag when to run.

Is a tag the same as a pixel?

A pixel is one type of tag. Tag is the broader term for any snippet a site runs, including analytics and testing scripts.

Do tags affect site speed?

They can. Each tag adds work for the browser, so keep only the ones you need and consider server-side options for heavy setups.

How do I know if a tag is firing?

Use your tag manager's preview mode or a browser tool, then check that the event shows up in the destination platform.

Want help putting this to work?

Tell us where your marketing stands today, and we'll show you what to do first.