Variant B · assigned
See customer value clearly.
Connect your first source and see which customers are becoming more valuable.
Start freeRendered on first paintThe developer path
Capture an event, assign the variant before first paint, measure what happened, and merge the winner into your code. The Web SDK, Server Events API, MCP server, and GitHub workflow all use the same experiment.
No credit card to start.
Capture customer behavior
The Web SDK captures browser events and runs browser-applied experiments. The Mobile SDK captures app sessions and attribution. The Server Events API records purchases and activations from your backend. Apex ties all three to one customer record.
One snippet for first-party events, identity, experiment exposure, and browser-applied variants.
A Capacitor plugin for iOS and Android events, installs, deep links, and experiment exposure.
Authenticated purchases, subscriptions, activations, and other events that should come from a trusted server.
Web install guide · Mobile install guide · Server Events docs
Apply the variant
Use the snippet when Apex can change an element that’s already on the page. Use @apex-inc/next when the variant lives in application code. Server-side assignment puts the variant in the first HTML, so the page doesn’t switch after it loads.
Variant B · assigned
Connect your first source and see which customers are becoming more valuable.
Start freeRendered on first paint<style id="apex-antiflicker">
html { opacity: 0 !important; }
</style>
<script
src="https://your-apex-domain/api/apex-js?key=YOUR_KEY"
async
></script>The snippet assigns the variant, applies it, then shows the page.
Work from your editor
With the open-source Apex MCP server, Cursor, VS Code, Claude, and other MCP clients can inspect events, check the wiring, and plan the experiment. Apex gives your agent the experiment IDs and implementation steps. Your agent writes the code, and you review it.
YouPlan a homepage experiment from what we already know.
GitHub × Apex
Link the pull request to the experiment. Merging makes it ready to run. The first recorded Production visit starts measurement. Apex compares the variant with the control. If the variant wins, Apex opens a templated Graduation PR that keeps it and removes the code that chose between variants. You review every change.
Openshop wants to merge 1 commit into main from apex/exp_home_hero
Apex linked this pull request to Homepage hero
Apex experiment
One API everywhere
Call REST directly when you need control. When Apex needs to call your system, it sends a signed webhook you can verify.
/api/v1/events{
"events": [{
"type": "purchase_completed",
"visitorId": "vis_abc123",
"data": {
"value": 99,
"currency": "USD"
}
}]
}{
"data": {
"received": 1,
"duplicates": 0
},
"metadata": { "batchSize": 1 }
}Apex adds the purchase to the same customer record used by the Web and Mobile SDKs.
Open the quickstart · Read the API docs · Verify webhooks · Read the Apex Spec
Your move
Start where customers act: your website, mobile app, or backend. Add Apex MCP and GitHub when you're ready to keep a winner through a reviewed Graduation PR.