Skip to content

feat: add Matomo popular articles tracking to subject pages#947

Open
jnatten wants to merge 5 commits into
masterfrom
feat/matomo-frontpage-stats
Open

feat: add Matomo popular articles tracking to subject pages#947
jnatten wants to merge 5 commits into
masterfrom
feat/matomo-frontpage-stats

Conversation

@jnatten
Copy link
Copy Markdown
Contributor

@jnatten jnatten commented May 6, 2026

Krever at vi legger inn en cronjob som kaller det nye endepunktet for å populere popularArticles

Integrate with Matomo API to fetch and store the most visited articles
per subject. Data is stored on SubjectPage in the database and exposed
in the API output DTO, but not accepted in create/update inputs.
Comment thread network/src/main/scala/no/ndla/network/clients/matomo/MatomoApiClient.scala Outdated
Comment thread network/src/main/scala/no/ndla/network/clients/TaxonomyApiClient.scala Outdated
jnatten added 2 commits May 6, 2026 22:39
Replaces the `SubjectPage` decoder workaround that injected an empty
`popularArticles` array on the fly with a Flyway migration that
populates the field on existing `subjectpage` rows, allowing the
decoder to be a plain `deriveDecoder`.
@jnatten jnatten force-pushed the feat/matomo-frontpage-stats branch from c17f07a to b24ece7 Compare May 6, 2026 20:40
Comment thread network/src/main/scala/no/ndla/network/clients/matomo/MatomoProps.scala Outdated
@jnatten jnatten requested a review from amatho May 7, 2026 07:23
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