first commit
This commit is contained in:
15
src/components/analytics/MicrosoftClarity.astro
Normal file
15
src/components/analytics/MicrosoftClarity.astro
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
interface Props {
|
||||
clarityId: string;
|
||||
}
|
||||
|
||||
const { clarityId } = Astro.props;
|
||||
---
|
||||
|
||||
<script is:inline data-swup-ignore-script define:vars={{ clarityId }}>
|
||||
(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", clarityId);
|
||||
</script>
|
||||
Reference in New Issue
Block a user