Skip to content

Commit f5c10be

Browse files
committed
chore(analytics): filter development host
1 parent 4048409 commit f5c10be

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/components/esta_semana_en_rust/layout.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ pub fn Layout(
7171
</script>
7272
<script type="text/javascript">
7373
(function(c,l,a,r,i,t,y){
74+
if ("localhost0.0.0.0::0192.168.0.1192.168.1.1".includes(document.location.hostname)) return;
7475
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
7576
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
7677
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);

src/components/layout.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ pub fn Layout(
9797
</script>
9898
<script type="text/javascript">
9999
(function(c,l,a,r,i,t,y){
100+
if ("localhost0.0.0.0::0192.168.0.1192.168.1.1".includes(document.location.hostname)) return;
100101
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
101102
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
102103
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);

0 commit comments

Comments
 (0)