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: track product usage intents #25419

Merged
merged 14 commits into from
Oct 7, 2024
Merged

Conversation

raquelmsmith
Copy link
Member

Problem

We currently say that someone is interested in a product if they click the option in onboarding. However, this is too simplistic - there are multiple ways someone can show interest in a product: viewing the marketing page, looking at docs, clicking around in the UI.

We want to use this intent to help the user succeed with the product. We can use in-app cues, emails, etc if we know they have intent for a certain product. We can't do this in-product stuff just by using events - so we should put it into a more flexible table.

Changes

  • Adds a simple table for recording product intent
  • Uses current user actions (starting or finishing onboarding) to add intents to the table
  • Adds actions to the teams/environments API to record these intents
    • I did these as actions on teams API because you'd never record an intent without relation to a team. It's a separate table for cleaner data modeling, but the API should be the same.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

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

Yes.

How did you test this code?

Added test for team endpoint. Need to add cypress tests for onboarding flow...

Copy link
Contributor

github-actions bot commented Oct 6, 2024

Size Change: -144 B (-0.01%)

Total Size: 1.13 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.13 MB -144 B (-0.01%)

compressed-size-action

@raquelmsmith raquelmsmith requested a review from a team October 7, 2024 13:34
Copy link
Contributor

@patricio-posthog patricio-posthog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks fine to me!

@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

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.

@raquelmsmith raquelmsmith enabled auto-merge (squash) October 7, 2024 17:44
@raquelmsmith raquelmsmith merged commit cf0375c into master Oct 7, 2024
93 checks passed
@raquelmsmith raquelmsmith deleted the feat/track-onboarding-intent branch October 7, 2024 17:53
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