Skip to content

Commit

Permalink
moved datalater function
Browse files Browse the repository at this point in the history
  • Loading branch information
desafinadude committed Oct 19, 2023
1 parent 8b349ab commit 24be44f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pmg/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@


<script>

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}

{# write the user's org domain as a GA dimension, see https://support.google.com/analytics/answer/2709828?hl=en #}
{% if current_user.is_authenticated %}
{% if current_user.organisation %}
Expand Down Expand Up @@ -48,13 +52,6 @@
})(window,document,'script','dataLayer','GTM-W7T6ZWH7');</script>
<!-- End Google Tag Manager -->


<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
</script>


<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="csrf-token" content="{{ csrf_token() }}">
Expand Down

0 comments on commit 24be44f

Please sign in to comment.