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

Add PostHog feature flag example #20

Merged
merged 7 commits into from
Oct 29, 2021
Merged

Add PostHog feature flag example #20

merged 7 commits into from
Oct 29, 2021

Conversation

leggetter
Copy link
Contributor

@leggetter leggetter commented Oct 27, 2021

PostHog is an open-source product analytics platform that offers a suite of tools, including funnels, heat maps, session recording, feature flags, and more, all in a single platform. This PR adds an example - based on the existing Split and ConfigCat examples - of using PostHog Feature Flags to A/B test a Next.js app using the new Next.js 12 middleware functionality.

I haven't been able to test out the deploy functionality from this example as the URLs for the source won't exist until the PR is merged.

image

The feature flags are:

  • New_Marketing_Page: A/B test
  • New_About_Page: A/B test
  • New_Product_Page: Multivariate test with values of a, b, or c

image

A/B example:

image

Multivariate example:

image

Feature flag insight analysis:

image

image

@vercel
Copy link

vercel bot commented Oct 27, 2021

@leggetter is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@leggetter
Copy link
Contributor Author

I've also just added a multivariate example with a Product page to go with the two A/B test page examples.

@leerob leerob merged commit e660a99 into vercel:main Oct 29, 2021
@leerob leerob mentioned this pull request Oct 29, 2021
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.

2 participants