Update microsoft-clarity.njk (#480)

This commit is contained in:
hushanjushi 2022-03-06 15:03:57 +08:00 committed by GitHub
parent f002285fc8
commit 358a3c080d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,9 @@
{%- if theme.clarity_analytics %}
<script async src="https://www.clarity.ms/tag/{{ theme.clarity_analytics }}"></script>
<script type="text/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", "{{ theme.clarity_analytics }}");
</script>
{%- endif %}