From 0acd6a6aee4895f707a781b7951020259514ede4 Mon Sep 17 00:00:00 2001 From: jnicholson-ch Date: Fri, 14 Feb 2025 16:30:08 +0000 Subject: [PATCH] ROECCT-507: Fix Matomo problems caused by Content Security Policy --- views/includes/piwik-goal.html | 4 +++- views/interrupt-card.html | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/views/includes/piwik-goal.html b/views/includes/piwik-goal.html index a2b7ce7ee..1969c4149 100644 --- a/views/includes/piwik-goal.html +++ b/views/includes/piwik-goal.html @@ -8,7 +8,9 @@ } function addGoalEventListeners() { - {% if (journey == "remove") %} + {% if (journey == "register") %} + trackGoal("continue", {{PIWIK_START_GOAL_ID}} ); + {% elif (journey == "remove") %} trackGoal("submit", {{PIWIK_REMOVE_START_GOAL_ID}} ); {% elif (update.owned_land_relevant_period == 1) %} trackGoal("submit", {{PIWIK_RELEVANT_PERIOD_START_GOAL_ID}} ); diff --git a/views/interrupt-card.html b/views/interrupt-card.html index d86f417b9..26e195334 100644 --- a/views/interrupt-card.html +++ b/views/interrupt-card.html @@ -33,9 +33,10 @@

Trusts

{% endif %} - + Continue + {% include "includes/piwik-goal.html" %}