Skip to content

Commit 4048409

Browse files
committed
chore(analytics): add clarify to track users and collect data for performance and usage
1 parent 466e6a6 commit 4048409

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/components/esta_semana_en_rust/layout.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ pub fn Layout(
6969
await fetch(API + '/track/count?reference=' + previous_domain, { method: 'POST' });
7070
"}
7171
</script>
72+
<script type="text/javascript">
73+
(function(c,l,a,r,i,t,y){
74+
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
75+
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
76+
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
77+
})(window, document, "clarity", "script", "n5t1gk7y5v");
78+
</script>
7279
</Head>
7380

7481
// Async is a component from the async_component module.

src/components/layout.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ pub fn Layout(
9595
await fetch(API + '/track/count?reference=' + previous_domain, { method: 'POST' });
9696
"}
9797
</script>
98+
<script type="text/javascript">
99+
(function(c,l,a,r,i,t,y){
100+
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
101+
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
102+
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
103+
})(window, document, "clarity", "script", "n5t1gk7y5v");
104+
</script>
98105
</Head>
99106

100107
// Async is a component from the async_component module.

0 commit comments

Comments
 (0)