In analytics, a tag is a piece of code that collects data in the browser and sends it to a third-party or first-party tool. The Google tag, ad platform pixels, heatmap scripts and chat widgets are all tags. In a tag manager such as Google Tag Manager, each tag is paired with triggers, the rules that decide when it fires, and variables, the values it sends.
Pixels and beacons
Pixel is an older name for a tag that loads a tiny image to send data in its URL. Many ad platforms still call their tags pixels even though they now run JavaScript and send requests in other ways.
Example
A tag audit before a performance push
Suppose Pinecairn, a payroll tool, lists every tag in its GTM container. Of the twenty-three tags (an illustrative count), seven belong to tools the company no longer pays for. Removing them reduces script on every page and simplifies the consent configuration.
Common mistakes
Firing everything on all pages
A tag needed only on the checkout page should not load on the blog.
No exception triggers for internal or test traffic
Without them, staging and internal visits mix with real data.
Questions
No. A tag is code that runs; a cookie is a small piece of stored data. Many tags set or read cookies, but some do not.