Skip to content

Conversation

@Dan0sz
Copy link
Collaborator

@Dan0sz Dan0sz commented Dec 2, 2025

This PR addresses plausible/analytics#164 (comment) and adds a custom property that shows users the search_source, i.e. the page the search was made on.

It adds a hidden input field to the get_search_form filter and the core/search block, as this is the only way to make sure in most cases that we know the referrer.

A migration script is added to make sure the required custom properties are added.

@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Dan0sz Dan0sz merged commit b35f3e9 into develop Dec 3, 2025
5 of 6 checks passed
@Dan0sz Dan0sz deleted the search_page_source branch December 3, 2025 14:43
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