Skip to content

Commit

Permalink
feat: replace outdated gtm tag (#402)
Browse files Browse the repository at this point in the history
* feat: replace outdated gtm tag

* chore: remove unused UA include
  • Loading branch information
alexanderleegs authored Apr 4, 2024
1 parent aa2099b commit 36123ea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
2 changes: 1 addition & 1 deletion _includes/google-tag-manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
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-TQ8G2P9');
})(window,document,'script','dataLayer','GTM-WXJKSPTL');
</script>
5 changes: 1 addition & 4 deletions _includes/main_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,12 @@

{%- include chatbot-scripts.html -%}

{%- comment -%} Google Analytics (UA) {%- endcomment -%}
<script src="{{- site.baseurl -}}/assets/js/google_analytics.js"></script>
<script async src="https://www.google-analytics.com/analytics.js"></script>
<script async src="{{- site.baseurl -}}/assets/js/autotrack.js"></script>

{%- comment -%} Isomer's Google Tag (GA4) {%- endcomment -%}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3RT85MXN6L"></script>
<script src="{{- site.baseurl -}}/assets/js/google-tag.js"></script>

{%- comment -%} Isomer's Google Tag Manager {%- endcomment -%}
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TQ8G2P9"
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WXJKSPTL"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
27 changes: 0 additions & 27 deletions assets/js/google_analytics.js

This file was deleted.

0 comments on commit 36123ea

Please sign in to comment.