Skip to content

Commit

Permalink
Merge pull request #172 from companieshouse/lp-458-jurisdiction-matomo
Browse files Browse the repository at this point in the history
LP-458 Matomo for jurisdiction page
  • Loading branch information
mattch1 authored Feb 3, 2025
2 parents 97a8f86 + d029573 commit 61c8cb1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/views/includes/jurisdiction-form.njk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
]
}) }}

{% include "includes/save-and-continue-button.njk" %}
{{ govukButton({
text: i18n.buttons.saveAndContinue,
attributes: {
"id": "submit",
"onclick": "_paq.push(['trackEvent', 'Limited Partnerships jurisdiction', 'jurisdiction', document.querySelector('input[name=jurisdiction]:checked').nextElementSibling.innerHTML])"
}
}) }}

</form>
8 changes: 7 additions & 1 deletion src/views/includes/jurisdiction-scotland.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
<input type="hidden" name="jurisdiction" value="Scotland">
{% include "includes/csrf_token.njk" %}
{% include "includes/errors.njk" %}
{% include "includes/save-and-continue-button.njk" %}
{{ govukButton({
text: i18n.buttons.saveAndContinue,
attributes: {
"id": "submit",
"onclick": "_paq.push(['trackEvent', 'Limited Partnerships jurisdiction', 'jurisdiction', document.querySelector('input[name=jurisdiction]').value])"
}
}) }}
</form>

0 comments on commit 61c8cb1

Please sign in to comment.