From 00722951cf477643c307d75fc3f21c5ab91775ba Mon Sep 17 00:00:00 2001 From: Vadym Parakonnyi Date: Sat, 18 May 2024 15:47:45 +0200 Subject: [PATCH] fix: google analytics script tags https://github.com/axodotdev/oranda/issues/699 --- src/site/layout/javascript/analytics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/layout/javascript/analytics.rs b/src/site/layout/javascript/analytics.rs index a2a9e0dc..681d5dd4 100644 --- a/src/site/layout/javascript/analytics.rs +++ b/src/site/layout/javascript/analytics.rs @@ -68,7 +68,7 @@ const FATHOM_SCRIPT_URL: &str = "https://cdn.usefathom.com/script.js"; impl Google { pub fn get_script(&self) -> String { - format!("window.dataLayer = window.dataLayer || []; function gtag(){{dataLayer.push(arguments);}} gtag('js', new Date());gtag('config', '{}');", self.tracking_id) + format!("", self.tracking_id) } }