posthog icon indicating copy to clipboard operation
posthog copied to clipboard

feat(web-analytics): Use sessions table in stats query

Open robbie-c opened this issue 1 year ago â€ĸ 5 comments

Problem

The stats table query doesn't use the sessions table to e.g. calculate bounce rate, and it could do which would give it a performance boost.

Changes

Use the sessions table. Additionally, expand the test coverage. Fixes a bug where using a path filter broke the bounce rate and scroll depth calculation

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Added many tests

It's also behind a FF still

robbie-c avatar Apr 29 '24 15:04 robbie-c

Size Change: +524 B (0%)

Total Size: 1.05 MB

â„šī¸ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.05 MB +524 B (0%)

compressed-size-action

github-actions[bot] avatar Apr 29 '24 15:04 github-actions[bot]

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

posthog-bot avatar Apr 29 '24 20:04 posthog-bot

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

posthog-bot avatar Apr 29 '24 20:04 posthog-bot

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

posthog-bot avatar Apr 29 '24 20:04 posthog-bot

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

posthog-bot avatar Apr 29 '24 20:04 posthog-bot

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • â€ŧī¸ CHQueryErrorBadArguments: DB::Exception: Dictionary (channel_definition_dict) not found: While processing multiIf(match(n... posthog.tasks.tasks.process_query_task View Issue

Did you find this useful? React with a 👍 or 👎

sentry-io[bot] avatar Apr 30 '24 09:04 sentry-io[bot]