Skip to content

Commit

Permalink
ROECCT-507: Fix Matomo problems caused by Content Security Policy
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicholson-ch committed Feb 14, 2025
1 parent 0708257 commit 0acd6a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion views/includes/piwik-goal.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}} );
Expand Down
3 changes: 2 additions & 1 deletion views/interrupt-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ <h2 class="govuk-heading-m">Trusts</h2>

{% endif %}

<a href="{{pageParams.nextPageUrl}}" id="continue" onclick="_paq.push(['trackGoal', '{{PIWIK_START_GOAL_ID}}'])" role="button" draggable="false" class="govuk-button" data-module="govuk-button">
<a href="{{pageParams.nextPageUrl}}" id="continue" role="button" draggable="false" class="govuk-button" data-module="govuk-button">
Continue
</a>
{% include "includes/piwik-goal.html" %}

</div>
</div>
Expand Down

0 comments on commit 0acd6a6

Please sign in to comment.