Skip to content

Commit 208bd99

Browse files
committed
No GA on localhost
1 parent f0a196c commit 208bd99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/playground/public/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
dataLayer.push(arguments);
4747
}
4848

49-
gtag('js', new Date());
50-
gtag('config', 'UA-119462943-1');
49+
if (window.location.hostname !== 'localhost') {
50+
gtag('js', new Date());
51+
gtag('config', 'UA-119462943-1');
52+
}
5153
</script>
5254
</html>

0 commit comments

Comments
 (0)