What are website tags?
A website tag is a small piece of JavaScript that runs when someone visits a page and sends information about that visit to an outside tool, such as Google Analytics or an advertising platform. Tags are how a business knows where its visitors came from, what they did, and which marketing produced a sale.
The word “tag” is used for three unrelated things on the web, which is where most of the confusion starts. Here is the difference, followed by what tracking tags actually do and how to see the ones running on your own site.