_includes/addons/analytics/google.liquid in jekyll-rtd-theme-1.0.0 vs _includes/addons/analytics/google.liquid in jekyll-rtd-theme-1.0.1
- old
+ new
@@ -1,5 +1,19 @@
+{%- if site.url contains "rundocs.io" -%}
+<!-- RunDocs Analytics -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=UA-174262874-1"></script>
+<script>
+ window.dataLayer = window.dataLayer || [];
+
+ function gtag() {
+ dataLayer.push(arguments);
+ }
+ gtag("js", new Date());
+ gtag("config", "UA-174262874-1");
+</script>
+{%- endif -%}
+
{%- if site.google.gtag -%}
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
@@ -13,6 +27,6 @@
{%- endif -%}
{%- if site.google.adsense -%}
<!-- Google AdSense -->
<script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
-{%- endif -%}
\ No newline at end of file
+{%- endif -%}