Skip to content

Commit 116e955

Browse files
authored
Merge pull request #373 from canonical/cookie-gtm
Run cookie policy before GTM
2 parents 5c6ab03 + e325bdd commit 116e955

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle docs/ templates/landscape/ templates/documentation-builder/ static/media"
1414
},
1515
"dependencies": {
16-
"@canonical/cookie-policy": "3.4.0",
16+
"@canonical/cookie-policy": "^3.6.4",
1717
"@canonical/global-nav": "2.7.0",
1818
"autoprefixer": "10.4.1",
1919
"sass-lint": "1.13.1",

‎templates/includes/layout.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<html lang="en">
44

55
<head>
6+
<!-- Cookie policy -->
7+
<script src="{% versioned_static 'js/dist/cookie-policy.js' %}"></script>
68
<!-- Google Tag Manager -->
79
<script>(function (w, d, s, l, i) {
810
w[l] = w[l] || []; w[l].push({
@@ -34,8 +36,7 @@
3436
{% block content %}{% endblock content %}
3537

3638
{% include "footer.html" %}
37-
<script src="{% versioned_static 'js/dist/global-nav.js' %}"></script>
38-
<script src="{% versioned_static 'js/dist/cookie-policy.js' %}"></script>
39+
<script src="{% versioned_static 'js/dist/global-nav.js' %}"></script>
3940
</body>
4041

4142
</html>

‎yarn.lock‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,11 @@
890890
resolved "https://registry.yarnpkg.com/@canonical/cookie-policy/-/cookie-policy-3.4.0.tgz#0d6708da340df5867fd2cc9dbd95538c46f20cf8"
891891
integrity sha512-cdVqxQmGu+j+Q86UobihWWVFzGzHlekFeMFxlbRpm+yqxEOUCrLkA9/t/RsMfLNDToP2ECPgsMbS20aPlA2tIg==
892892

893+
"@canonical/cookie-policy@^3.6.4":
894+
version "3.6.4"
895+
resolved "https://registry.yarnpkg.com/@canonical/cookie-policy/-/cookie-policy-3.6.4.tgz#895c3770f621b73d88b0d5843c43a32d99e4a462"
896+
integrity sha512-kfwamTpAaBhtH5TzlMb8wE814a8lIbONUuSYnS7VPiHDfcdmw4NoBPNpldmNY1j3CAT5vMKOx5kulRTWpEXpag==
897+
893898
"@canonical/global-nav@2.7.0":
894899
version "2.7.0"
895900
resolved "https://registry.yarnpkg.com/@canonical/global-nav/-/global-nav-2.7.0.tgz#6a61cba769a367c984b89bb7c4286a674f88354a"

0 commit comments

Comments
 (0)