Skip to content
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

feat(web-analytics): Add pinnable actions and conversion goals #24398

Merged
merged 20 commits into from
Aug 30, 2024

Conversation

robbie-c
Copy link
Member

@robbie-c robbie-c commented Aug 15, 2024

Pinnable actions are finished with this PR, but conversion goals in web analytics aren't, but I'd like to get this merged to avoid more merge conflicts.

Problem

Conversion goals are one of the most requested things in web analytics, and would let people figure out % of users who e.g. reached a certain page / clicked on a certain button (i.e. autocapture) / performed a specific custom event.

Changes

We already have Actions as a concept in posthog, so this piggy-backs off this.

  • Add a concept of pinning actions. Pinned actions appear above unpinned actions in both web anaytics, and in the taxonomic filter component
  • Add a tile in web analytics, which lists the top N actions and shows the conversion rate for each one (by person id).
Screenshot 2024-08-27 at 15 59 22

This part is WIP and hidden behind a FF:
Screenshot 2024-08-27 at 16 01 35

Not in this PR but will be in a follow-up

  • Web analytics: Add a page-level setting for the conversion goal. This is then shown as the overview as the global conversion rate, and other breakdowns on the page will show conversion % per breakdown (e.g. by country or device type)
  • Web analytics: A shortcut from the tile to manage goals
  • Web analytics: Some information on tile about the total number of users, so that the number of uniques makes sense in context
  • Web analytics: Empty state for the tile, prompting a user to create an action
  • Web analytics: click an action in the goals tile sets it as the goal for the page

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

Yes

How did you test this code?

Updated the existing tests to make sure that pinning an action works.
Added some tests for the new query

@robbie-c robbie-c force-pushed the feature/add-pinned-actions-as-conversion-goals branch from e228041 to 0df5890 Compare August 19, 2024 15:21
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c force-pushed the feature/add-pinned-actions-as-conversion-goals branch from 387d7ff to aee3baa Compare August 21, 2024 13:47
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c force-pushed the feature/add-pinned-actions-as-conversion-goals branch from f4a30cc to 4839576 Compare August 23, 2024 17:50
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c force-pushed the feature/add-pinned-actions-as-conversion-goals branch from a6f2fe3 to aec2b47 Compare August 23, 2024 18:35
Copy link
Contributor

github-actions bot commented Aug 23, 2024

Size Change: +79 B (+0.01%)

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.11 MB +79 B (+0.01%)

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c force-pushed the feature/add-pinned-actions-as-conversion-goals branch from 91da322 to 3a59663 Compare August 23, 2024 19:21
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c force-pushed the feature/add-pinned-actions-as-conversion-goals branch 5 times, most recently from 9e617ec to 67fd39a Compare August 27, 2024 14:05
@robbie-c robbie-c marked this pull request as ready for review August 27, 2024 14:54
@robbie-c robbie-c force-pushed the feature/add-pinned-actions-as-conversion-goals branch 2 times, most recently from 64c8596 to 1151098 Compare August 28, 2024 11:47
@robbie-c robbie-c requested a review from anirudhpillai August 30, 2024 13:11
@robbie-c robbie-c force-pushed the feature/add-pinned-actions-as-conversion-goals branch from 2bf1605 to 0ebb5c4 Compare August 30, 2024 13:14
@robbie-c robbie-c enabled auto-merge (squash) August 30, 2024 13:15
@robbie-c robbie-c merged commit c972f71 into master Aug 30, 2024
92 checks passed
@robbie-c robbie-c deleted the feature/add-pinned-actions-as-conversion-goals branch August 30, 2024 14:41
MarconLP pushed a commit that referenced this pull request Sep 6, 2024
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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