Repository navigation
feat(campaign): add campaign A/B testing tools for headlines and images - #1302
Open
devogechukwu wants to merge 2 commits into
Open
devogechukwu wants to merge 2 commits into
devogechukwu wants to merge 2 commits into
Conversation
|
@devogechukwu Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request implements comprehensive campaign A/B testing tools enabling creators to configure, preview, test, and optimize campaign headlines, hero images, and CTA button text to identify which variants drive higher conversion rates.
Acceptance Criteria Implemented
Creator sets up variants in campaign editor:
CampaignABTestingEditorcomponent integrated into:CampaignEditModalunder a dedicated "A/B Testing Tools" tab.CampaignWizardStepsinside the initialDetailsStepduring campaign creation.Traffic split 50/50 by default (configurable):
Winner can be locked in manually or auto-selected by significance:
significance, the system automatically identifies and locks in the winning variant upon reaching statistical significance.Key Changes
apps/web/src/types/campaign-ab-testing.ts: Type definitions for variants, traffic splits, statistical significance metrics, and test configuration.apps/web/src/services/campaign-ab-testing.service.ts: Core domain service handling variant routing, impression tracking, conversion tracking, winner locking, and two-proportion z-test calculations.apps/web/src/hooks/use-campaign-ab-testing.ts: Deterministic client hook for variant routing, impression recording, and conversion event tracking.apps/web/src/components/modules/campaign/ab-testing/: Creator UI with variant inputs, traffic split sliders, live preview cards, and statistical significance badges.Closes #1221