XF 2.0 Google Analytics - Web Property ID versus Global Site Tag

tomwood

Member
I added the Google Analytics Tracking ID to the field in Setup>Options>SEO, but I notice that Google Analytics also offers a block of code they call the Global Site Tag:

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

  gtag('config', 'UA-99999999');
</script>

Is this an either/or, or is there additional benefit to doing both?
 
Top