-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Page Scroll Goals #5029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page Scroll Goals #5029
Conversation
macobo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial thoughts on the PR. Will dig into the query side of this in-depth in another pass.
test/plausible_web/controllers/api/external_stats_controller/query_test.exs
Outdated
Show resolved
Hide resolved
test/plausible_web/controllers/api/external_stats_controller/query_test.exs
Outdated
Show resolved
Hide resolved
test/plausible_web/controllers/api/stats_controller/conversions_test.exs
Outdated
Show resolved
Hide resolved
9978623 to
3c63b79
Compare
3c63b79 to
7e2e780
Compare
da3f88a to
ebf0dfb
Compare
test/plausible_web/controllers/api/external_stats_controller/query_imported_test.exs
Outdated
Show resolved
Hide resolved
test/plausible_web/controllers/api/external_stats_controller/query_imported_test.exs
Show resolved
Hide resolved
| end | ||
| end | ||
|
|
||
| describe "page scroll goals" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're still missing a test showing the behavior with imported data + conversion rate + goal group by.
Co-authored-by: Karl-Aksel Puulmann <[email protected]>
@macobo test/plausible_web/controllers/api/external_stats_controller/query_imported_test.exs:1468 is testing it. If you meant to say imported data + group conversion rate + goal group by - that's not possible with imported data, as mixing multiple dimensions will make the query ineligible for imported data. |
|
macobo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be happy if the testing nit were resolved but other than that looks great!
Required migration steps
Migrating from the old unique index to the new one is a bit tricky, requiring multiple steps:
scroll_thresholdcolumn toGoaland add the new unique index. Page Scroll Goals: migration step 1 #5033Once the old index is dropped, this PR is ready to go.
Changes
This PR implements page scroll goals.
A page scroll goal can be created by simply adding a value into an optional
scroll_thresholdfield when creating a pageview goal:A user can filter and break down page scroll goals like any other goals.
TODO: figure out what to do with the total conversions metric
Tests
Changelog
Documentation
Dark mode