# How to install the Google tag (gtag.js)

The Google tag, gtag.js, is a single tag you add to your website to use several Google products, like Google Ads and Google Analytics, instead of managing a separate tag for each. Install it once in the head of every page, or through Google Tag Manager, and each product can use it.

Source: https://www.clickguard.com/help/faq/how-to-install-the-google-tag
Published: 2026-09-30
Updated: 2026-09-30
Author: Nikola Pejic

The Google tag (gtag.js) is a single tag you can add to your website to use a variety of Google products and services (e.g., Google Ads, Google Analytics, Campaign Manager, Display & Video 360, Search Ads 360). 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.

## Add the Google tag to your website

To start collecting data with the Google tag:

1.  Open a Google product you use and access the Google tag screen.
2.  Copy your Google tag ID.
3.  Paste your Google tag ID in the code sample below. Place the Google tag snippet immediately after the opening `<head>` HTML tag on every page you want to measure.  
    

```
  <!-- Google tag (gtag.js) -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
  <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'TAG_ID');
  </script>
```

## NOTE:

Even if you have Google Tag Manager installed and working on your website, that does not mean you have Google Tag installed. This tag is mandatory for ClickGuard to start populating Audience exclusions.

See also: [What is ClickGuard's tracking code](https://www.clickguard.com/help/glossary/what-is-clickguards-tracking-code).

## Related articles

- [What is ClickGuard's tracking code](https://www.clickguard.com/help/glossary/what-is-clickguards-tracking-code.md)
