Skip to content

Commit

Permalink
fix(PRL-6777): Fix GA CSP issue (#1720)
Browse files Browse the repository at this point in the history
* fix(PRL-6777): Fix GA CSP issue

* fix(PRL-6777): Fix GA CSP issue

* fix(PRL-6777): Fix GA CSP issue
  • Loading branch information
vivek-sekhar authored Dec 12, 2024
1 parent 4058a7f commit 6d3f60d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 54 deletions.
6 changes: 3 additions & 3 deletions charts/prl-citizen-frontend/values.preview.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ nodejs:
IDAM_WEB_URL: 'https://idam-web-public.{{ .Values.global.environment }}.platform.hmcts.net/login'
IDAM_API_URL: 'https://idam-api.{{ .Values.global.environment }}.platform.hmcts.net/o/token'
EQUALITY_URL: 'https://pcq.aat.platform.hmcts.net'
CCD_URL: 'https://ccd-data-store-api-prl-ccd-definitions-pr-2541.preview.platform.hmcts.net'
DOCUMENT_MANAGEMENT_URL: 'https://ccd-case-document-am-api-prl-ccd-definitions-pr-2541.preview.platform.hmcts.net'
COS_URL: 'https://prl-cos-pr-2916.preview.platform.hmcts.net'
CCD_URL: 'http://ccd-data-store-api-aat.service.core-compute-aat.internal'
DOCUMENT_MANAGEMENT_URL: 'http://ccd-case-document-am-api-aat.service.core-compute-aat.internal'
COS_URL: 'http://prl-cos-aat.service.core-compute-aat.internal'
REASONABLE_ADJUSTMENTS: 'https://cui-ra.aat.platform.hmcts.net'
FACT_URL: 'http://fact-api-aat.service.core-compute-aat.internal'
REDIS_HOST: 'prl-citizen-frontend-secondary-redis-{{ .Values.global.environment }}.redis.cache.windows.net'
Expand Down
27 changes: 2 additions & 25 deletions src/main/steps/common/dashboard-page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,12 @@
{% extends "govuk/template.njk" %}

{% block head %}
<!-- Google Tag Manager -->

<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({'gtm.start': new Date().getTime(), event: 'gtm.js'});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer'
? '&l=' + l
: '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f
.parentNode
.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-NJCKLVT');
</script>
<!-- End Google Tag Manager -->
{% include "./webpack/css.njk" %}
{% include "./views/includes/script-ga_tag_manager.njk" %}
{% endblock %}

{% block bodyStart %}
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NJCKLVT"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
{% include "./views/includes/script-ga_tag_manager_2.njk" %}
<!-- Dynatrace RUM Script -->
<script type="text/javascript" src="https://js-cdn.dynatrace.com/jstag/17177a07246/bf24054dsx/17472274602522b6_complete.js" crossorigin="anonymous"></script>
<!-- End Dynatrace RUM Script -->
Expand Down
28 changes: 2 additions & 26 deletions src/main/steps/common/page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,12 @@
{% extends "govuk/template.njk" %}

{% block head %}
<!-- Google Tag Manager -->

<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({'gtm.start': new Date().getTime(), event: 'gtm.js'});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer'
? '&l=' + l
: '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f
.parentNode
.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-NJCKLVT');
</script>
<!-- End Google Tag Manager -->

{% include "./webpack/css.njk" %}
{% include "./views/includes/script-ga_tag_manager.njk" %}
{% endblock %}

{% block bodyStart %}
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NJCKLVT"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
{% include "./views/includes/script-ga_tag_manager_2.njk" %}
<!-- Dynatrace RUM Script -->
<script type="text/javascript" src="https://js-cdn.dynatrace.com/jstag/17177a07246/bf24054dsx/17472274602522b6_complete.js" crossorigin="anonymous"></script>
<!-- End Dynatrace RUM Script -->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NJCKLVT');</script>
<!-- End Google Tag Manager -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NJCKLVT" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->

0 comments on commit 6d3f60d

Please sign in to comment.