Skip to content

Commit 5891ce0

Browse files
committed
chore(analytics): filter development host
1 parent 0c0fbf8 commit 5891ce0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/head_information.rs

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub fn HeadInformation() -> impl IntoView {
5252
<Link rel="canonical" href=format!("https://rustlang-es.org{}", path)/>
5353
<script type="text/javascript">
5454
(function(c,l,a,r,i,t,y){
55+
if ("localhost0.0.0.0::0192.168.0.1192.168.1.1".includes(document.location.hostname)) return;
5556
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
5657
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
5758
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);

0 commit comments

Comments
 (0)