Skip to content

Commit

Permalink
Merge pull request #183 from canonical/gtm-cookie
Browse files Browse the repository at this point in the history
Run cookie policy before Google tag manager
  • Loading branch information
britneywwc authored Oct 11, 2024
2 parents 17796ac + 4db5846 commit e65bc6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/base_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
</title>
<link rel="preconnect" href="https://www.google-analytics.com" />
<link rel="preconnect" href="https://www.gstatic.com" />
<!-- Cookie policy -->
<script src="{{ versioned_static('js/dist/cookie-policy.js') }}"></script>
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
Expand Down Expand Up @@ -82,7 +84,6 @@
<link rel="stylesheet" type="text/css" media="screen" href="{{ versioned_static("css/styles.css") }}" />
</head>
<body>
<script src="{{ versioned_static('js/dist/cookie-policy.js') }}"></script>
{% block body %}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K7QJ3BF"
Expand All @@ -91,7 +92,6 @@
style="display: none;
visibility: hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<script src="{{ versioned_static('js/dist/cookie-policy.js') }}"></script>
{% include "partial/_navigation.html" %}
<div id="main">
{% block content %}
Expand Down

0 comments on commit e65bc6f

Please sign in to comment.