[GA4] The Google tag

The Google tag (gtag.js) is a single tag you can add to your website to use a variety of Google products and services. Instead of managing multiple tags for different Google product accounts, you can use the Google tag across your entire website and connect the tag to multiple destinations.

The Google tag uses the gtag.js JavaScript library to send data to Google Analytics. In addition to the Google tag, you can use Google Tag Manager to send data to Google Analytics.

The Google tag was previously referred to as the global site tag.

If you set up Analytics on your site after August 2017, your site is probably tagged with gtag.js. If you set up Analytics on your site before August 2017, your site is probably tagged with analytics.js.

Learn more about the Google tag

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

true
Choose your own learning path

Check out google.com/analytics/learn, a new resource to help you get the most out of Google Analytics 4. The new website includes videos, articles, and guided flows, and provides links to the Google Analytics Discord, Blog, YouTube channel, and GitHub repository.

Start learning today!

Search
Clear search
Close search
Google apps
Main menu
true
Search Help Center
true
true
true
true
true
69256