diff --git a/inst/templates/meta_partial_template.mustache b/inst/templates/meta_partial_template.mustache
index 98ac830..84e55d4 100644
--- a/inst/templates/meta_partial_template.mustache
+++ b/inst/templates/meta_partial_template.mustache
@@ -26,21 +26,14 @@ cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palet
+
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-THG9Q3WPEJ');
+
diff --git a/inst/templates/meta_template.mustache b/inst/templates/meta_template.mustache
index c220901..8b0f15d 100644
--- a/inst/templates/meta_template.mustache
+++ b/inst/templates/meta_template.mustache
@@ -28,21 +28,14 @@ cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palet
+
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-THG9Q3WPEJ');
+
{{>header}}
diff --git a/inst/templates/ntaTemplate.mustache b/inst/templates/ntaTemplate.mustache
index b0c0615..a6f69fd 100644
--- a/inst/templates/ntaTemplate.mustache
+++ b/inst/templates/ntaTemplate.mustache
@@ -20,21 +20,14 @@ cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palet
+
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-THG9Q3WPEJ');
+
{{>header}}
diff --git a/inst/templates/template.mustache b/inst/templates/template.mustache
index 0bcb650..16fed6f 100644
--- a/inst/templates/template.mustache
+++ b/inst/templates/template.mustache
@@ -27,21 +27,14 @@ cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palet
+
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-THG9Q3WPEJ');
+