Analytics scripts are injected to page multiple times
Steps to Reproduce
Navigate to reittiopas.hsl.fi
Open dev tools (F12)
Open elements viewer
Change to Favorites tab
There will be additional script tags at the end of html body and beginning of head
Do more actions on the site to get more duplicates
Some initialization scripts for analytics gathering are duplicated whenever actions are made on the page.
The problem with init script duplication seems to be fixed now in production. There is still a small script added for every event but it seems to be related to how the events in matomo are implemented, should not be a problem.