Add additional products

Once you’ve added the global snippet to a page, you can update it to support additional accounts or products. Simply add additional gtag() commands.

Here is an example of a global snippet originating from Google Analytics, with an AdWords conversion ID added:

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

  gtag('config', 'GA-TRACKING_ID');
  gtag('config', 'AW-CONVERSION_ID');
</script>

Complete tracking configurations for AdWords, Analytics, and DoubleClick can be configured all from within the same gtag.js tag. For more examples of how to add multiple products and accounts, read the gtag.js routing guide.