Skip to content

Commit a69ced1

Browse files
authored
Merge pull request #1737 from companieshouse/origin/feature/roecct-638-matomo-adding-goals-for-the-pre-registration-page-of-the-s174-journey-in-cidev
potential fix for goals 2 and 3 not functioning properly
2 parents f922986 + d977d95 commit a69ced1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/frontend/analytics/piwik.relevant.period.confirm.goals.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export type MatomoPaq = {
88

99
export function trackRelevantPeriodGoal(
1010
value: string,
11-
paq: MatomoPaq | undefined = (window as any).paq
11+
// eslint-disable-next-line no-underscore-dangle
12+
paq: MatomoPaq | undefined = (window as any)._paq
1213
): void {
1314

1415
if (value === "1") {

views/includes/piwik-relevant-period-confirm-goals.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
submitButton.addEventListener("click", () => {
1616
const selected = document.querySelector(
17-
'input[name="relevant-period-required-information"]:checked'
17+
'input[name="required_information"]:checked'
1818
);
1919
if (!selected) {
2020
return;

0 commit comments

Comments
 (0)