Skip to content

Commit

Permalink
Revert "Revert "chores(analytics): replace Tarteaucitron by raw GTM""
Browse files Browse the repository at this point in the history
This reverts commit 695f3ff.
  • Loading branch information
dlecan committed May 24, 2024
1 parent 695f3ff commit 8f17583
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/components/Analytics.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<svelte:head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-559S4SD7');</script>
<!-- End Google Tag Manager -->
<!--
<script
src="https://cdn.jsdelivr.net/npm/tarteaucitronjs@1/tarteaucitron.min.js"
></script>
Expand All @@ -10,6 +18,7 @@
tarteaucitron.user.googletagmanagerId = "GTM-559S4SD7";
(tarteaucitron.job = tarteaucitron.job || []).push("googletagmanager");
</script>
-->
</svelte:head>

<style global>
Expand Down

0 comments on commit 8f17583

Please sign in to comment.