Skip to content

Add custom and pageview goals to exploration suggestions#6299

Merged
zoldar merged 14 commits intomasterfrom
exploration-add-pageview-and-custom-goals
May 6, 2026
Merged

Add custom and pageview goals to exploration suggestions#6299
zoldar merged 14 commits intomasterfrom
exploration-add-pageview-and-custom-goals

Conversation

@zoldar
Copy link
Copy Markdown
Contributor

@zoldar zoldar commented Apr 30, 2026

Changes

This PR makes exploration UI account for custom and pageview goals in suggestions and exploration funnel queries.

The goals that match the event or pageview exactly, replace it. Pageview goals using a pattern are always rendered as they can neither match exact event or pageview, nor can thay match a wildcard entry, which has a different definition (it applies only to subpaths delimited "/" and not just by prefix).

The current implementation introduces a significant performance regression. It will be addressed by a subsequent refactoring - either as a part of this PR or in a follow-up. Performance seems to be on an acceptable enough level, however testing against higher traffic sites will give a better picture.

image

Tests

  • Automated tests have been added

@zoldar zoldar added the preview label Apr 30, 2026
@github-actions
Copy link
Copy Markdown

Preview environment👷🏼‍♀️🏗️
PR-6299

@zoldar zoldar force-pushed the exploration-add-pageview-and-custom-goals branch 2 times, most recently from d5ca259 to ad50d15 Compare May 4, 2026 10:10
@zoldar zoldar requested a review from aerosol May 5, 2026 15:38
@zoldar zoldar marked this pull request as ready for review May 5, 2026 15:41
@zoldar zoldar force-pushed the exploration-add-pageview-and-custom-goals branch from a4889ab to 43faf4e Compare May 5, 2026 15:45
Comment thread extra/lib/plausible/stats/exploration.ex Outdated
Comment thread extra/lib/plausible/stats/exploration.ex
Comment thread extra/lib/plausible/stats/exploration.ex Outdated
@zoldar zoldar enabled auto-merge May 6, 2026 08:36
@zoldar zoldar added this pull request to the merge queue May 6, 2026
Merged via the queue into master with commit 4a9f46d May 6, 2026
23 checks passed
@zoldar zoldar deleted the exploration-add-pageview-and-custom-goals branch May 6, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants