A small piece of website code used to collect data, deliver functionality, or support advertising and analytics tools.
A common technical component of tracking, personalization, and marketing platform integrations.
Short and sweet:
A small piece of website code used to collect data, deliver functionality, or support advertising and analytics tools.
A common technical component of tracking, personalization, and marketing platform integrations.
See also: Tag Manager, Tracking Pixel, Analytics
A JavaScript tag is a snippet of code placed on a website to enable functionality like tracking, personalization, or third-party widgets, and it typically runs in the visitor’s browser rather than on the server hosting the site. Because tags execute independently, adding too many at once, or poorly optimized ones, can slow a page down noticeably, which is part of why many teams manage them through a tag manager rather than hardcoding each one directly into the site. Some ad and privacy blockers also prevent certain tags from firing at all, which is an important limitation to account for when relying on tag-based data for reporting.
Installing the Google Analytics JavaScript tag on a website is usually the very first technical step a new business takes before it can measure any traffic at all.
Live chat widgets like Intercom work by dropping a similar snippet onto every page of a site, which is what makes that chat bubble appear in the corner of the screen.
A/B testing platforms such as Optimizely rely on the same kind of code installed sitewide, letting the tool swap in different versions of a page before a visitor even notices anything changed.