From 49515d9e144b446a7011fc16724b2f78ba6cd333 Mon Sep 17 00:00:00 2001 From: Vaidic Joshi Date: Sun, 8 Nov 2020 19:12:35 +0530 Subject: [PATCH] feat(analytics): add support for Microsoft Clarity Documentation: https://wowchemy.com/docs/guide/analytics/ See #1938 Closes #1923 --- .../layouts/partials/marketing/microsoft_clarity.html | 9 +++++++++ wowchemy/layouts/partials/site_head.html | 1 + 2 files changed, 10 insertions(+) create mode 100644 wowchemy/layouts/partials/marketing/microsoft_clarity.html diff --git a/wowchemy/layouts/partials/marketing/microsoft_clarity.html b/wowchemy/layouts/partials/marketing/microsoft_clarity.html new file mode 100644 index 00000000..764efea8 --- /dev/null +++ b/wowchemy/layouts/partials/marketing/microsoft_clarity.html @@ -0,0 +1,9 @@ +{{ if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") | and site.Params.marketing.microsoft_clarity }} + +{{ end }} diff --git a/wowchemy/layouts/partials/site_head.html b/wowchemy/layouts/partials/site_head.html index c27351a2..188441a1 100644 --- a/wowchemy/layouts/partials/site_head.html +++ b/wowchemy/layouts/partials/site_head.html @@ -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) }}