Skip to content

Commit

Permalink
Merge branch 'hotfix/umami-setting-typo'
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Jun 24, 2024
2 parents e7b0e71 + e117a66 commit b411a7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/layouts/_analytics.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
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:
(function(c,l,a,r,i,t,y){
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);

0 comments on commit b411a7a

Please sign in to comment.