Skip to content

Commit

Permalink
chore: GA/GTM moved from async to defer
Browse files Browse the repository at this point in the history
  • Loading branch information
robsongajunior committed Nov 28, 2024
1 parent a70b16c commit 31962be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/trd3/google-tag-manager/script.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<link rel="preconnect" href="https://www.googletagmanager.com/" />
<link rel="preconnect" href="https://www.google-analytics.com" />

<script is:inline async type="text/javascript">
<script is:inline defer type="text/javascript">
(function() {
window.dataLayer = window.dataLayer || [];

Expand Down Expand Up @@ -46,7 +46,7 @@
})();
</script>

<script is:inline async type="text/javascript">
<script is:inline defer type="text/javascript">
(function() {
if (window.location.origin !== 'https://www.azion.com' || window.location.search.match(/trd3=false/)) {
console.log('Google GTAG: disabled');
Expand Down

0 comments on commit 31962be

Please sign in to comment.