diff --git a/app/views/layouts/_analytics.html.slim b/app/views/layouts/_analytics.html.slim index d089430db..eb890a07e 100644 --- a/app/views/layouts/_analytics.html.slim +++ b/app/views/layouts/_analytics.html.slim @@ -5,10 +5,10 @@ function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); - gtag('config', '#{Setting.google_analytics_id}'); + gtag('config', Setting.google_analytics_id); - if Setting.umami_website_id.present? - script defer=true src="#{Settring.umami_script_url}" data-website-id="#{Setting.umami_website_id}" + script defer=true src="#{Setting.umami_script_url}" data-website-id="#{Setting.umami_website_id}" - if Setting.clarity_analytics_id.present? javascript: @@ -16,4 +16,4 @@ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); - })(window, document, "clarity", "script", "#{Setting.clarity_analytics_id}"); + })(window, document, "clarity", "script", Setting.clarity_analytics_id);