mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 06:14:48 +00:00
feat(analytics): add support for Microsoft Clarity
Documentation: https://wowchemy.com/docs/guide/analytics/ See #1938 Closes #1923
This commit is contained in:
1 parent
93ce3d22ad
commit
49515d9e14
2 files changed
+10
No files matched your search
@@ -0,0 +1,9 @@
|
||||
{{ if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") | and site.Params.marketing.microsoft_clarity }}
|
||||
<script>
|
||||
(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", '{{site.Params.marketing.microsoft_clarity}}');
|
||||
</script>
|
||||
{{ end }}
|
||||
@@ -158,6 +158,7 @@
|
||||
|
||||
{{ partial "marketing/google_analytics" . }}
|
||||
{{ partial "marketing/google_tag_manager" . }}
|
||||
{{ partial "marketing/microsoft_clarity" . }}
|
||||
|
||||
{{/* Netlify Identity integration. */}}
|
||||
{{ if .IsHome | and (site.Params.cms.netlify_cms | default false) }}
|
||||
|
||||
Reference in new issue
Block a user