gtag.html 361 B

1234567891011
  1. {% if site.gtag %}
  2. <!-- Global site tag (gtag.js) - Google Analytics -->
  3. <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.gtag }}"></script>
  4. <script>
  5. window.dataLayer = window.dataLayer || [];
  6. function gtag(){dataLayer.push(arguments);}
  7. gtag('js', new Date());
  8. gtag('config', '{{ site.gtag }}');
  9. </script>
  10. {% endif %}