mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Only load analytics in production
This commit is contained in:
parent
c810402c47
commit
33b7e94f26
@ -23,6 +23,7 @@
|
||||
</head>
|
||||
<body data-sidebar-visible="true" class="font-sans font-normal text-slate-darker leading-normal">
|
||||
@yield('body')
|
||||
@if ($page->production)
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-109068504-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
@ -31,5 +32,6 @@
|
||||
|
||||
gtag('config', 'UA-109068504-1');
|
||||
</script>
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user