Nah, but keep the client load only
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user