← ClaudeAtlas

assign-randomized-a-b-test-tags-to-new-subscriberslisted

Build a Zap on Zapier that randomly sorts each new Kit subscriber into an A or B group by tagging them, so welcome sequences can run valid split tests. Use when a creator or marketer runs email A/B tests in Kit and wants an even, automatic 50/50 split without assigning people by hand.
zapier/awesome-zaps · ★ 2 · AI & Automation · score 78
Install: claude install-skill zapier/awesome-zaps
# Assign randomized A/B test tags to new subscribers The Zap's code lives at https://github.com/zapier/awesome-zaps/tree/main/zaps/assign-randomized-a-b-test-tags-to-new-subscribers. Read the files there if this skill was installed on its own. ## What it does 1. **Trigger:** a subscriber is added to a Kit tag you choose (`kit`, `tagHook`). 2. **Random draw:** a whole number from 1 to 10,000,000 is drawn, once per subscriber, and kept with the run. 3. **Split:** draws at or below 5,000,000 go to group A; above it go to group B. 4. **Kit** adds the subscriber to the group A or group B tag, creating the subscriber if their email is not yet in Kit. ## Ask the user Each `REPLACE_…` value is set per person. Resolve tag names to IDs with the user's Kit connection; don't ask them to paste an ID you can look up. | Setting | Where | What goes there | | ------------------------ | ---------------------------- | ---------------------------------------------------------------- | | `REPLACE_TRIGGER_TAG_ID` | `triggers/tag-hook.ts`, `id` | The Kit tag that marks new subscribers who should enter the test | | `REPLACE_TAG_A_ID` | `config.ts` | The Kit tag for group A | | `REPLACE_TAG_B_ID` | `config.ts` | The Kit tag for group B | The trigger tag must differ from both group