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 a Google Ads conversion ID added:

<script async src="">
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'GA_MEASUREMENT_ID');
  gtag('config', 'AW-CONVERSION_ID');

Complete configurations for Google Ads and the Google Marketing Platform 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.