Skip to content

Commit

Permalink
Invoke cookie policy before gtm
Browse files Browse the repository at this point in the history
  • Loading branch information
britneywwc committed Oct 11, 2024
1 parent 8af5fb2 commit 70fa7ff
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions templates/base_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
</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/build/cookie-policy/cookie-policy.js') }}"></script>
<script>
if (typeof cpNs !== "undefined") {
cpNs.cookiePolicy();
}
</script>
<!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) {
w[l] = w[l] || []; w[l].push({
Expand Down Expand Up @@ -94,11 +101,7 @@
{% include "partial/_footer.html" %}
{% endblock body %}
<script src="{{ versioned_static('js/build/global-nav/global-nav.js') }}"></script>
<script src="{{ versioned_static('js/build/cookie-policy/cookie-policy.js') }}"></script>
<script>
if (typeof cpNs !== "undefined") {
cpNs.cookiePolicy();
}
if (typeof canonicalGlobalNav !== "undefined") {
canonicalGlobalNav.createNav({breakpoint: 940});
}
Expand Down

0 comments on commit 70fa7ff

Please sign in to comment.