Nah, but keep the client load only
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-13 10:50:10 +02:00
parent 5a00c6f552
commit 2ef3ad838c

View File

@@ -9,10 +9,7 @@
const { page } = stores()
// Init Google Analytics
if (typeof window !== 'undefined'
&& process.env.NODE_ENV !== 'development'
&& navigator.userAgent.indexOf('Speed Insights') == -1
) {
if (typeof window !== 'undefined' && process.env.NODE_ENV !== 'development') {
window.dataLayer = window.dataLayer || []
window.gtag = function gtag() {
window.dataLayer.push(arguments)
@@ -26,10 +23,7 @@
</script>
<svelte:head>
{#if
process.env.NODE_ENV !== 'development'
&& navigator.userAgent.indexOf('Speed Insights') == -1
}
{#if process.env.NODE_ENV !== 'development'}
<script async src="https://www.googletagmanager.com/gtag/js?id={id}"></script>
{/if}
</svelte:head>