hof 20.3.5-beta-gtm → 20.3.6-beta-gtm
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/c84e394d-abf7-4aea-99aa-36427e671442.json +1 -0
- package/.nyc_output/processinfo/c84e394d-abf7-4aea-99aa-36427e671442.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/frontend/govuk-template/govuk_template_generated.html +17 -18
- package/frontend/template-partials/views/partials/head.html +5 -7
- package/lib/ga-tag.js +45 -5
- package/package.json +1 -1
- package/.nyc_output/61a079f0-003b-4167-8f31-77e3abe4f072.json +0 -1
- package/.nyc_output/processinfo/61a079f0-003b-4167-8f31-77e3abe4f072.json +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"parent":null,"pid":4383,"argv":["/Users/chisomoguibe/.nvm/versions/node/v18.17.1/bin/node","/Users/chisomoguibe/Projects/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/chisomoguibe/Projects/hof","time":1702296946254,"ppid":4381,"coverageFilename":"/Users/chisomoguibe/Projects/hof/.nyc_output/c84e394d-abf7-4aea-99aa-36427e671442.json","externalId":"","uuid":"c84e394d-abf7-4aea-99aa-36427e671442","files":["/Users/chisomoguibe/Projects/hof/model/index.js","/Users/chisomoguibe/Projects/hof/components/index.js","/Users/chisomoguibe/Projects/hof/components/address-lookup/index.js","/Users/chisomoguibe/Projects/hof/components/address-lookup/default-model.js","/Users/chisomoguibe/Projects/hof/components/address-lookup/defaults.js","/Users/chisomoguibe/Projects/hof/components/clear-session/index.js","/Users/chisomoguibe/Projects/hof/components/combine-and-loop-fields/index.js","/Users/chisomoguibe/Projects/hof/components/date/index.js","/Users/chisomoguibe/Projects/hof/components/date/fields.js","/Users/chisomoguibe/Projects/hof/components/emailer/index.js","/Users/chisomoguibe/Projects/hof/components/emailer/email-service.js","/Users/chisomoguibe/Projects/hof/components/emailer/emailer.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/index.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/smtp.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/ses.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/stub.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/debug.js","/Users/chisomoguibe/Projects/hof/components/homeoffice-countries/index.js","/Users/chisomoguibe/Projects/hof/config/component-defaults.js","/Users/chisomoguibe/Projects/hof/components/notify/index.js","/Users/chisomoguibe/Projects/hof/components/notify/notify.js","/Users/chisomoguibe/Projects/hof/components/summary/index.js","/Users/chisomoguibe/Projects/hof/config/rate-limits.js","/Users/chisomoguibe/Projects/hof/middleware/rate-limiter.js","/Users/chisomoguibe/Projects/hof/config/hof-defaults.js","/Users/chisomoguibe/Projects/hof/controller/base-controller.js","/Users/chisomoguibe/Projects/hof/controller/formatting/index.js","/Users/chisomoguibe/Projects/hof/controller/validation/index.js","/Users/chisomoguibe/Projects/hof/controller/validation/validators.js","/Users/chisomoguibe/Projects/hof/controller/validation/email.js","/Users/chisomoguibe/Projects/hof/controller/validation-error.js","/Users/chisomoguibe/Projects/hof/utilities/index.js","/Users/chisomoguibe/Projects/hof/utilities/autofill/index.js","/Users/chisomoguibe/Projects/hof/utilities/autofill/inputs.js","/Users/chisomoguibe/Projects/hof/utilities/test-data/index.js","/Users/chisomoguibe/Projects/hof/utilities/countries.js","/Users/chisomoguibe/Projects/hof/utilities/helpers/index.js","/Users/chisomoguibe/Projects/hof/utilities/reqres/index.js","/Users/chisomoguibe/Projects/hof/config/sanitisation-rules.js","/Users/chisomoguibe/Projects/hof/controller/formatting/formatters.js","/Users/chisomoguibe/Projects/hof/controller/index.js","/Users/chisomoguibe/Projects/hof/controller/behaviour-session.js","/Users/chisomoguibe/Projects/hof/controller/behaviour-hooks.js","/Users/chisomoguibe/Projects/hof/controller/controller.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/index.js","/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/render.js","/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/helpers.js","/Users/chisomoguibe/Projects/hof/index.js","/Users/chisomoguibe/Projects/hof/frontend/index.js","/Users/chisomoguibe/Projects/hof/frontend/govuk-template/index.js","/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/index.js","/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/config.js","/Users/chisomoguibe/Projects/hof/frontend/template-partials/index.js","/Users/chisomoguibe/Projects/hof/frontend/template-partials/translations/index.js","/Users/chisomoguibe/Projects/hof/frontend/themes/index.js","/Users/chisomoguibe/Projects/hof/frontend/themes/gov-uk/index.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/index.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/validation.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/chisomoguibe/Projects/hof/middleware/index.js","/Users/chisomoguibe/Projects/hof/middleware/cookies.js","/Users/chisomoguibe/Projects/hof/middleware/errors.js","/Users/chisomoguibe/Projects/hof/middleware/not-found.js","/Users/chisomoguibe/Projects/hof/middleware/deep-translate.js","/Users/chisomoguibe/Projects/hof/lib/markdown.js","/Users/chisomoguibe/Projects/hof/lib/router.js","/Users/chisomoguibe/Projects/hof/wizard/index.js","/Users/chisomoguibe/Projects/hof/wizard/behaviours/index.js","/Users/chisomoguibe/Projects/hof/wizard/behaviours/complete.js","/Users/chisomoguibe/Projects/hof/wizard/util/constants.js","/Users/chisomoguibe/Projects/hof/lib/helpers.js","/Users/chisomoguibe/Projects/hof/lib/health.js","/Users/chisomoguibe/Projects/hof/lib/serve-static.js","/Users/chisomoguibe/Projects/hof/lib/ga-tag.js","/Users/chisomoguibe/Projects/hof/lib/sessions.js","/Users/chisomoguibe/Projects/hof/lib/settings.js","/Users/chisomoguibe/Projects/hof/lib/logger.js","/Users/chisomoguibe/Projects/hof/build/index.js","/Users/chisomoguibe/Projects/hof/config/builder-defaults.js","/Users/chisomoguibe/Projects/hof/transpiler/index.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/compile.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/build.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/expand-dirs.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/aggregate.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/write-files.js","/Users/chisomoguibe/Projects/hof/model/apis/index.js","/Users/chisomoguibe/Projects/hof/model/apis/html-to-pdf-converter.js","/Users/chisomoguibe/Projects/hof/wizard/model.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/back-links.js","/Users/chisomoguibe/Projects/hof/wizard/util/helpers.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/check-complete.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/check-progress.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/check-session.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/csrf.js","/Users/chisomoguibe/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/fields.js","/Users/chisomoguibe/Projects/hof/sandbox/test/helpers/utilities.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/chisomoguibe/Projects/hof/lib/encryption.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/session.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/session-model.js"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"processes":{"61a079f0-003b-4167-8f31-77e3abe4f072":{"parent":null,"children":[]}},"files":{"/Users/chisomoguibe/Projects/hof/model/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/model/apis/axios-settings.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/default-model.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/defaults.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/clear-session/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/combine-and-loop-fields/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/date/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/date/fields.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/emailer/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/emailer/email-service.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/emailer/emailer.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/smtp.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/ses.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/stub.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/debug.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/homeoffice-countries/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/config/component-defaults.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/notify/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/notify/notify.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/components/summary/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/config/rate-limits.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/middleware/rate-limiter.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/config/hof-defaults.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/base-controller.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/formatting/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/validation/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/validation/validators.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/validation/email.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/validation-error.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/utilities/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/inputs.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/utilities/test-data/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/utilities/countries.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/utilities/helpers/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/utilities/reqres/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/config/sanitisation-rules.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/formatting/formatters.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-session.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-hooks.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/controller/controller.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/template-mixins.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/render.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/helpers.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/config.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/translations/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/themes/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/themes/gov-uk/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/helpers.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/validation.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/character-count.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/middleware/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/middleware/cookies.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/middleware/errors.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/middleware/not-found.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/middleware/deep-translate.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/markdown.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/router.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/complete.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/util/constants.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/helpers.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/health.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/serve-static.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/ga-tag.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/sessions.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/settings.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/logger.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/build/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/config/builder-defaults.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/transpiler/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/compile.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/build.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/expand-dirs.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/aggregate.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/write-files.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/model/apis/index.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/model/apis/html-to-pdf-converter.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/model.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/back-links.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/util/helpers.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-complete.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-progress.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-session.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/csrf.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/fields.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/sandbox/test/helpers/utilities.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/lib/encryption.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session.js":["61a079f0-003b-4167-8f31-77e3abe4f072"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session-model.js":["61a079f0-003b-4167-8f31-77e3abe4f072"]},"externalIds":{}}
|
1
|
+
{"processes":{"c84e394d-abf7-4aea-99aa-36427e671442":{"parent":null,"children":[]}},"files":{"/Users/chisomoguibe/Projects/hof/model/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/default-model.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/defaults.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/clear-session/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/combine-and-loop-fields/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/date/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/date/fields.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/emailer/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/emailer/email-service.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/emailer/emailer.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/smtp.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/ses.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/stub.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/debug.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/homeoffice-countries/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/config/component-defaults.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/notify/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/notify/notify.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/components/summary/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/config/rate-limits.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/middleware/rate-limiter.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/config/hof-defaults.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/base-controller.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/formatting/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/validation/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/validation/validators.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/validation/email.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/validation-error.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/utilities/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/inputs.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/utilities/test-data/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/utilities/countries.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/utilities/helpers/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/utilities/reqres/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/config/sanitisation-rules.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/formatting/formatters.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-session.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-hooks.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/controller/controller.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/template-mixins.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/render.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/helpers.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/config.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/translations/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/themes/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/themes/gov-uk/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/helpers.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/validation.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/character-count.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/middleware/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/middleware/cookies.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/middleware/errors.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/middleware/not-found.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/middleware/deep-translate.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/markdown.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/router.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/complete.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/util/constants.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/helpers.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/health.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/serve-static.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/ga-tag.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/sessions.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/settings.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/logger.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/build/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/config/builder-defaults.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/transpiler/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/compile.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/build.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/expand-dirs.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/aggregate.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/write-files.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/model/apis/index.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/model/apis/html-to-pdf-converter.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/model.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/back-links.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/util/helpers.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-complete.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-progress.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-session.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/csrf.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/fields.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/sandbox/test/helpers/utilities.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/lib/encryption.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session.js":["c84e394d-abf7-4aea-99aa-36427e671442"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session-model.js":["c84e394d-abf7-4aea-99aa-36427e671442"]},"externalIds":{}}
|
@@ -5,39 +5,38 @@
|
|
5
5
|
<head>
|
6
6
|
<meta charset="utf-8" />
|
7
7
|
<title>{{$pageTitle}}{{/pageTitle}}</title>
|
8
|
+
{{$head}}{{/head}}
|
8
9
|
|
9
10
|
<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="{{govukAssetPath}}images/favicon.ico" type="image/x-icon">
|
10
|
-
<link rel="mask-icon" href="{{govukAssetPath}}images/govuk-mask-icon.svg" color="#0b0c0c">
|
11
|
+
<link rel="mask-icon" href="{{govukAssetPath}}images/govuk-mask-icon.svg" color="#0b0c0c">
|
11
12
|
<link rel="apple-touch-icon" sizes="180x180" href="{{govukAssetPath}}images/govuk-apple-touch-icon-180x180.png">
|
12
13
|
<link rel="apple-touch-icon" sizes="167x167" href="{{govukAssetPath}}images/govuk-apple-touch-icon-167x167.png">
|
13
14
|
<link rel="apple-touch-icon" sizes="152x152" href="{{govukAssetPath}}images/govuk-apple-touch-icon-152x152.png">
|
14
15
|
<link rel="apple-touch-icon" href="{{govukAssetPath}}images/govuk-apple-touch-icon.png">
|
15
|
-
|
16
|
-
|
16
|
+
|
17
|
+
|
17
18
|
<meta name="theme-color" content="#0b0c0c" />
|
18
19
|
|
19
20
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
22
|
+
|
24
23
|
<meta property="og:image" content="{{govukAssetPath}}images/opengraph-image.png">
|
25
24
|
</head>
|
26
25
|
|
27
26
|
<body class="{{$bodyClasses}}{{/bodyClasses}} govuk-template__body js-enabled" >
|
28
27
|
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
|
29
28
|
|
30
|
-
|
29
|
+
|
31
30
|
|
32
31
|
<div id="global-cookie-message" class="gem-c-cookie-banner govuk-clearfix" data-module="cookie-banner" role="region" aria-label="cookie banner" data-nosnippet="">
|
33
32
|
{{$cookieMessage}}{{/cookieMessage}}
|
34
33
|
</div>
|
35
|
-
|
36
|
-
{{$bodyStart}}{{/bodyStart}}
|
37
|
-
|
34
|
+
|
35
|
+
{{$bodyStart}}{{/bodyStart}}
|
36
|
+
|
38
37
|
<header role="banner" id="govuk-header" class="{{$headerClass}}{{/headerClass}}">
|
39
38
|
<div class="govuk-header__container govuk-width-container">
|
40
|
-
|
39
|
+
|
41
40
|
<div class="govuk-header__logo">
|
42
41
|
<a href="{{$homepageUrl}}https://www.gov.uk{{/homepageUrl}}" title="{{$logoLinkTitle}}Go to the GOV.UK homepage{{/logoLinkTitle}}" id="logo" class="govuk-header__link govuk-header__link--homepage" target="_blank" data-module="track-click" data-track-category="homeLinkClicked" data-track-action="homeHeader">
|
43
42
|
<span class="govuk-header__logotype">
|
@@ -57,11 +56,11 @@
|
|
57
56
|
</a>
|
58
57
|
</div>
|
59
58
|
{{$insideHeader}}{{/insideHeader}}
|
60
|
-
|
59
|
+
|
61
60
|
{{$propositionHeader}}{{/propositionHeader}}
|
62
61
|
</div>
|
63
62
|
</header>
|
64
|
-
|
63
|
+
|
65
64
|
|
66
65
|
{{$afterHeader}}{{/afterHeader}}
|
67
66
|
|
@@ -81,7 +80,7 @@
|
|
81
80
|
<svg aria-hidden="true" focusable="false" class="govuk-footer__licence-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 483.2 195.7" height="17" width="41">
|
82
81
|
<path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145"></path>
|
83
82
|
</svg>
|
84
|
-
|
83
|
+
|
85
84
|
<span class="govuk-footer__licence-description">{{$licenceMessage}}All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" id="open-government-licence" class="govuk-footer__link" target="_blank" rel="license">Open Government Licence v3.0</a>, except where otherwise stated{{/licenceMessage}}</span>
|
86
85
|
</div>
|
87
86
|
|
@@ -93,12 +92,12 @@
|
|
93
92
|
</footer>
|
94
93
|
|
95
94
|
<div id="global-app-error" class="app-error hidden"></div>
|
96
|
-
|
95
|
+
|
97
96
|
|
98
97
|
{{$bodyEnd}}{{/bodyEnd}}
|
99
|
-
|
100
|
-
|
98
|
+
|
99
|
+
|
101
100
|
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
|
102
|
-
|
101
|
+
|
103
102
|
</body>
|
104
103
|
</html>
|
@@ -1,18 +1,16 @@
|
|
1
1
|
{{#gtmTagId}}
|
2
2
|
{{#cookiesAccepted}}
|
3
|
-
|
4
|
-
<!-- Google Tag Manager Data Layer for ETA -->
|
3
|
+
<!-- Google Tag Manager Data Layer -->
|
5
4
|
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
|
6
5
|
var dataLayer = window.dataLayer || [];
|
7
6
|
dataLayer.push({
|
8
|
-
'event': '
|
9
|
-
'pageName': '
|
10
|
-
'applicationType': '
|
7
|
+
'event': '{{pageEvent}}',
|
8
|
+
'pageName': '{{pageName}}',
|
9
|
+
'applicationType': '{{applicationType}}',
|
11
10
|
'environmentType': '{{environmentType}}'
|
12
11
|
});
|
13
12
|
</script>
|
14
|
-
<!-- End Google Tag Manager Data Layer
|
15
|
-
{{/isETA}}
|
13
|
+
<!-- End Google Tag Manager Data Layer -->
|
16
14
|
|
17
15
|
<!-- Google Tag Manager -->
|
18
16
|
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
|
package/lib/ga-tag.js
CHANGED
@@ -57,24 +57,64 @@ module.exports = (app, config) => {
|
|
57
57
|
const gaCrossDomainTrackingTagId = config.gaCrossDomainTrackingTagId;
|
58
58
|
const routes = config.routes;
|
59
59
|
|
60
|
-
if (gaTagId || ga4TagId) {
|
60
|
+
if (gaTagId || ga4TagId || gtmTagId) {
|
61
|
+
const pageMap = setupPageMap(routes);
|
62
|
+
|
63
|
+
app.use((req, res, next) => {
|
64
|
+
const page = pageView(req.path, pageMap);
|
65
|
+
|
66
|
+
// Preparing common res.locals properties
|
67
|
+
const properties = {
|
68
|
+
gaAllowDebug: config.env === 'development',
|
69
|
+
gaTagId: gaTagId,
|
70
|
+
ga4TagId: ga4TagId,
|
71
|
+
gaCrossDomainTrackingTagId: gaCrossDomainTrackingTagId,
|
72
|
+
'ga-id': gaTagId,
|
73
|
+
'ga-page': page
|
74
|
+
};
|
75
|
+
|
76
|
+
// Adding extra properties if a GTM TAG is available
|
77
|
+
if (gtmTagId) {
|
78
|
+
Object.assign(properties, {
|
79
|
+
gtmTagId: gtmTagId,
|
80
|
+
'gtm-page': convertToGTMPage(page),
|
81
|
+
eventName: 'pageLoad',
|
82
|
+
pageName: `ETA | Customer Contact Webform | ${convertToGTMPage(page)}`,
|
83
|
+
applicationType: 'ETA | Customer Contact',
|
84
|
+
environmentType: environmentType
|
85
|
+
});
|
86
|
+
}
|
87
|
+
|
88
|
+
res.locals = Object.assign(res.locals, properties);
|
89
|
+
next();
|
90
|
+
});
|
91
|
+
}
|
92
|
+
|
93
|
+
/*
|
94
|
+
if (gaTagId || ga4TagId || gtmTagId) {
|
61
95
|
const pageMap = setupPageMap(routes);
|
62
96
|
|
63
97
|
app.use((req, res, next) => {
|
64
98
|
const page = pageView(req.path, pageMap);
|
65
99
|
res.locals.gaAllowDebug = config.env === 'development';
|
66
|
-
|
100
|
+
|
101
|
+
if (gtmTagId) {
|
102
|
+
res.locals.gtmTagId = gtmTagId;
|
103
|
+
res.locals['gtm-page'] = convertToGTMPage(page);
|
104
|
+
res.locals.eventName = "pageLoad"
|
105
|
+
res.locals.pageName = `ETA | Customer Contact Webform | ${res.locals['gtm-page']}`
|
106
|
+
res.locals.applicationType = "ETA | Customer Contact"
|
107
|
+
res.locals.environmentType = environmentType;
|
108
|
+
}
|
67
109
|
res.locals.gaTagId = gaTagId;
|
68
110
|
res.locals.ga4TagId = ga4TagId;
|
69
|
-
res.locals.gtmTagId = gtmTagId;
|
70
|
-
res.locals.environmentType = environmentType;
|
71
111
|
res.locals.gaCrossDomainTrackingTagId = gaCrossDomainTrackingTagId;
|
72
112
|
res.locals['ga-id'] = gaTagId;
|
73
113
|
res.locals['ga-page'] = page;
|
74
|
-
res.locals['gtm-page'] = convertToGTMPage(page);
|
75
114
|
next();
|
76
115
|
});
|
77
116
|
}
|
117
|
+
*/
|
78
118
|
|
79
119
|
return app;
|
80
120
|
};
|