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: Safe creation AB test #1001

Closed
wants to merge 2 commits into from
Closed

feat: Safe creation AB test #1001

wants to merge 2 commits into from

Conversation

iamacook
Copy link
Member

What it solves

Resolves #968

How this PR fixes it

An "coin toss" decides which Safe creation flow to use (new or old) and stores this flag locally. The chosen flow is also sent with every analytics event.

How to test it

Open Safe creation (from /welcome) and note which flow is chosen. Return to /welcome, delete the SAFE_v2__AB__newSafe localStorage entry and refresh the page. Creating a Safe again may choose a different flow. Repeat until the other is taken.

Analytics changes

{ abTest?: string } is sent with events in Safe load/creation, labelled "New" or "Old" accordingly.

apps: '/apps',
addressBook: '/address-book',
balances: {
nfts: '/balances/nfts',
index: '/balances',
},
newSafe: {
create: '/new-safe/create',
add: '/new-safe/add',
Copy link
Member Author

Choose a reason for hiding this comment

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

This was added in anticipation of the add Safe revamp.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 28, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec8ee26
Status:🚫  Build failed.

View logs


return {
createSafe: shouldUseNewRoute ? AppRoutes.newSafe.create : AppRoutes.open,
addSafe: shouldUseNewRoute ? AppRoutes.newSafe.add : AppRoutes.load,
Copy link
Member Author

Choose a reason for hiding this comment

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

AppRoutes.newSafe.add uses the AppRoutes.load component for now.

@iamacook iamacook marked this pull request as ready for review October 28, 2022 12:07
@github-actions
Copy link

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@katspaugh
Copy link
Member

It would be much simpler to just add a conditional redirect on the old URL.

Copy link
Member

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

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

To make my point about the redirect clear, instead of the useNewSafeRoutes spread across many components, the A/B test should have just one entry point: the old Safe creation route.
On that page, do a simple URL redirect to the alternative URL if the user is in B.

As a side note, I would split this PR into two:

  • A/B test system implementation
  • The Safe creation test

@iamacook
Copy link
Member Author

As a side note, I would split this PR into two:

* A/B test system implementation

* The Safe creation test

I'll work on this now.

@iamacook iamacook closed this Oct 31, 2022
@katspaugh katspaugh deleted the ab-test-creation branch April 23, 2023 11:51
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