diff --git a/src/components/gtag.svelte b/src/components/gtag.svelte new file mode 100644 index 00000000..a3267e67 --- /dev/null +++ b/src/components/gtag.svelte @@ -0,0 +1,23 @@ + + + + {#if !dev && $page.data.version === 'published' && $page.url.host === 'significa.co'} + + + {#if $page.url.pathname === '/services'} + + {/if} + {/if} + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index b7184d0d..e24fdf67 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -10,6 +10,7 @@ import Footer from '$components/footer.svelte'; import { toast, Toaster, ToastNotification } from '@significa/svelte-ui'; import { beforeNavigate } from '$app/navigation'; + import Gtag from '$components/gtag.svelte'; export let data; beforeNavigate(() => { @@ -20,6 +21,7 @@ +