Skip to content

Commit f295545

Browse files
Merge pull request #10536 from mendix/olu-usercentrics-metering
Isolating cookie tracking to test GSC crawl
2 parents 0479ac2 + 036d433 commit f295545

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

content/en/docs/releasenotes/studio-pro/10/10.12.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "10.12"
33
url: /releasenotes/studio-pro/10.12/
44
description: "The release notes for Mendix Studio Pro 10.12 (including all patches) with details on new features, bug fixes, and known issues."
55
weight: 88
6+
disable_usercentrics: true
67
---
78

89
## 10.12.19 {#101219}

content/en/docs/releasenotes/studio-pro/10/10.18.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description: "The release notes for Mendix Studio Pro 10.18 (including all patch
55
weight: 82
66
# KI: "Runtime-only changes": UFC-1647
77
# KI: "The debugger does not reconnect": UFC-1644
8+
disable_usercentrics: true
89
---
910

1011
## 10.18.12 {#101812}

content/en/docs/releasenotes/studio-pro/10/10.21.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description: "The release notes for Mendix Studio Pro 10.21 (including all patch
55
weight: 79
66
# KI: "Runtime-only changes": UFC-1647
77
# KI: "The debugger does not reconnect": UFC-1644
8+
disable_usercentrics: true
89
---
910
## 10.21.1 {#10211}
1011

content/en/docs/releasenotes/studio-pro/10/10.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "10.6"
33
url: /releasenotes/studio-pro/10.6/
44
description: "The release notes for Mendix Studio Pro 10.6 (including all patches) with details on new features, bug fixes, and known issues."
55
weight: 94
6+
disable_usercentrics: true
67
---
78

89
## 10.6.25 {#10625}

layouts/partials/hooks/body-end.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>{{ partial "mx-dock.html" . }}</div>
33

44
<!-- Add analytics as defined by Marketing -->
5-
{{- if eq hugo.Environment "production" -}}<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-QJG4"
5+
{{- if and (eq hugo.Environment "production") (not .Params.disable_usercentrics) -}}<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-QJG4"
66
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
77
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
88
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
@@ -31,6 +31,8 @@
3131
</script>
3232

3333
<!-- Olu: Added analytics as defined by Marketing/Legal. Read more here: https://github.com/mendix-web/mendix-analytics-package. You need access from the Mendix Web team -->
34+
{{ if not .Params.disable_usercentrics }}
3435
<script src='{{ "js/analytics-packages/datalayer-tracking.js" | relURL }}'></script>
3536
<script src='{{ "js/analytics-packages/usercentrics-consent.js" | relURL }}'></script>
37+
{{ end }}
3638

layouts/partials/hooks/head-end.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!-- Olu: Added analytics as defined by Marketing/Legal. Read more here: https://github.com/mendix-web/mendix-analytics-package. You need access from the Mendix Web team -->
2-
{{- if eq hugo.Environment "production" -}}
2+
{{- if and (eq hugo.Environment "production") (not .Params.disable_usercentrics) -}}
33
<script src="https://assets.adobedtm.com/5dfc7d97c6fb/f76097206fad/launch-a8be6e5af390.min.js" async></script> {{- end -}}
44

5-
{{- if eq hugo.Environment "development" -}}
5+
{{- if and (eq hugo.Environment "development") (not .Params.disable_usercentrics) -}}
66
<script src="https://assets.adobedtm.com/5dfc7d97c6fb/f76097206fad/launch-ef5f6245245b-staging.min.js" async></script> {{- end -}}
77

88
<!-- Not using Docsy Algolia - nothing needs to go here-->

0 commit comments

Comments
 (0)