Skip to content

Comments

YJDH-723 | Kesäseteli frontend: Add Matomo tracking & cookie consent to employer & youth UIs#3890

Merged
karisal-anders merged 1 commit intomainfrom
YJDH-723-add-matomo
Feb 23, 2026
Merged

YJDH-723 | Kesäseteli frontend: Add Matomo tracking & cookie consent to employer & youth UIs#3890
karisal-anders merged 1 commit intomainfrom
YJDH-723-add-matomo

Conversation

@karisal-anders
Copy link
Collaborator

@karisal-anders karisal-anders commented Feb 16, 2026

Description ✨

Kesäseteli frontend: Add Matomo tracking & cookie consent to employer & youth UIs.

Localizing siteName for HDS's CookieModal does not change the cookie, see:

NOTE:

  • cookieDomain parameter of <CookieModal> and <CookiePage> is not used, nor is it used by Helsinki Benefit in YJDH monorepo currently. HDS v3.11.0 has logic related to the cookieDomain parameter. Cookie domain use could be added when e.g. refactoring/redoing this functionality when upgrading to HDS v4.

Issues 🐛

YJDH-723

Testing ⚗️

Screenshots 📸

Small modal Finnish

image

Large modal Finnish

image

Additional notes 🗒️

@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3890.api.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3890.api.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@karisal-anders karisal-anders force-pushed the YJDH-723-add-matomo branch 2 times, most recently from b369cd8 to 44e7dd6 Compare February 16, 2026 13:56
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3890.api.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@karisal-anders karisal-anders force-pushed the YJDH-723-add-matomo branch 2 times, most recently from 909118a to 11b5803 Compare February 17, 2026 13:12
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3890.api.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@karisal-anders
Copy link
Collaborator Author

Tests all passed in pipeline, the github integration just doesn't show them correctly:

Copy link
Contributor

@nikomakela nikomakela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments and ideas

@nikomakela nikomakela self-requested a review February 18, 2026 13:46
Copy link
Contributor

@nikomakela nikomakela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of notes which are some kind of personal preferences. The site name in cookie consent modal updates too late: it's always one change behind. Sure the language is not changed very often.

@karisal-anders karisal-anders force-pushed the YJDH-723-add-matomo branch 2 times, most recently from f4afed2 to fee1769 Compare February 18, 2026 15:13
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3890.api.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 🚀🚀🚀

@karisal-anders
Copy link
Collaborator Author

Rebased on current main to refresh pipeline run.

@karisal-anders
Copy link
Collaborator Author

NOTE: Matomo code is fetched before cookie consent modal is handled, but according to testing by another team member locally it only POSTs data to Matomo if consent to use Matomo cookie is given. So, looks like it should be working ok i.e. user should not be tracked with Matomo if they do not consent to being tracked with Matomo.

@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3890.api.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 😆🎉🎉🎉

NOTE:
- This implementation is quite similar to the one in Benefit.
- This implementation will have to be drastically changed when upgrading
  to HDS v4 (As is evident from the work done on cookie consent in
  events-helsinki-monorepo in the last half a year).

Add Matomo tracking support & cookie consent modal to employer and
youth UIs in Kesäseteli.

Add cookie-settings pages for modifying cookie consent after the fact.

refs YJDH-723
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3890.api.dev.hel.ninja 🚀🚀🚀

@sonarqubecloud
Copy link

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3890.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3890.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3890.dev.hel.ninja 😆🎉🎉🎉

@karisal-anders karisal-anders merged commit 4be9366 into main Feb 23, 2026
73 checks passed
@karisal-anders karisal-anders deleted the YJDH-723-add-matomo branch February 23, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants