Skip to content

Commit 0c0fbf8

Browse files
committed
chore(analytics): add clarify to track users and collect data for performance and usage
1 parent b8890b5 commit 0c0fbf8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/head_information.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ pub fn HeadInformation() -> impl IntoView {
5050
<Meta name="og:image" content=format!("https://rustlang-es.org/{preview}")/>
5151
<Meta name="twitter:image" content=format!("https://rustlang-es.org/{preview}")/>
5252
<Link rel="canonical" href=format!("https://rustlang-es.org{}", path)/>
53+
<script type="text/javascript">
54+
(function(c,l,a,r,i,t,y){
55+
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
56+
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
57+
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
58+
})(window, document, "clarity", "script", "n5sqsldiw7");
59+
</script>
5360
</>
5461
}
5562
}

0 commit comments

Comments
 (0)