Add support for Clarity analytics
parent
f2e3e8fbdf
commit
799d80e8a6
@ -0,0 +1,11 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ with $page.Param "paige.analytics.clarity" }}
|
||||
<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", "{{ .account_id }}");
|
||||
</script>
|
||||
{{ end }}
|
Loading…
Reference in New Issue