Skip to content

Conversation

@thet
Copy link
Member

@thet thet commented Apr 5, 2025

Obsoletes: #323

Related: euphorie/Euphorie#838

NOTE: Fetching the custom dimension from an endpoint is yet disabled as this needs this PR to be finished: euphorie/Euphorie#838

NOTE 2: the tracking reload mechanism is not using the navigate event polyfill from Patternslib, as this can also be done just with standard pat-inject events and comparing the new location.href to a previous one.

Ref: scrum-3351
Ref: scrum-3249

PRs

euphorie/Euphorie#838
#324

@thet thet requested a review from pilz April 5, 2025 17:08
thet added 13 commits May 19, 2025 22:40
This tracking snippet deactivates automatic link tracking for the report
download buttons and tracks them manually.
It removes the session id segment from the URL so that all downloads can
be grouped together in Matomo and to not reveal DSGVO relevant data.

This requires Matomo 5+ as the deactivation does not work reliably
(Matomo 4) or at all (Matomo 3) in earlier Matomo versions.

Ref: scrum-3249
This tracking snipped just adds a "setCustomUrl" variable which has the
session id segment removed but leaves all the other information as-is.

This is sufficient for the requirement of scrum-3249.

Ref: scrum-3249
… is not a bad choice due to var hoisting, which is in this case even wanted.
@thet thet changed the base branch from scrum-3249 to main May 19, 2025 20:51
Copy link
Member

@pilz pilz left a comment

Choose a reason for hiding this comment

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

Validated by Gari.

@pilz pilz merged commit c3f09dc into main May 21, 2025
3 checks passed
@pilz pilz deleted the scrum-3351 branch May 21, 2025 09:04
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.

3 participants