Choose the page you want personas to visit. Check that its Flagsmith events reach Rehearsal before you run a panel.
Page loads
No JavaScript errors
Flagsmith SDK identifies the visitor
Identity tr-preflight-pv3f18 sent to Flagsmith
Page reports its state
window.__tableread is ready
Variant assigned by the experiment
Served control
Exposure event sent
$flag_exposure reached Flagsmith
Events delivered
Flagsmith accepted the event batch
Page loads
No JavaScript errors
Flagsmith SDK identifies the visitor
Identity tr-preflight-zrejc0 sent to Flagsmith
Page reports its state
window.__tableread is ready
Variant assigned by the experiment
Served control
Exposure event sent
$flag_exposure reached Flagsmith
Events delivered
Flagsmith accepted the event batch
@flagsmith/flagsmith and supply the two client keys, a stable anonymous visitor ID, and the flag and metric names.value at the experiment surface. Give every multivariate option a key in Flagsmith.convert() at your success action and await it before navigating. Then run the website check and verify conversion with a persona.import flagsmith from "@flagsmith/flagsmith";
// Call on the client when the experiment surface is shown.
export async function connectExperiment({ rehearsalKey, productionKey, visitorId, flagName, metricEvent }) {
const query = new URLSearchParams(location.search);
const persona = query.get("tr_id");
await flagsmith.init({
environmentID: persona ? rehearsalKey : productionKey,
identity: persona ?? visitorId,
traits: {
traffic: persona ? "persona" : "visitor",
segment: query.get("tr_seg") ?? "",
device: query.get("tr_dev") ?? "",
},
enableEvents: true,
});
const flag = flagsmith.getExperimentFlag(flagName);
const flush = () => flagsmith.flushEvents();
window.__tableread = {
ready: true,
variant: flag ? (flag.variant ?? "control") : null,
inExperiment: !!flag?.experiment?.inExperiment,
events: [],
flush,
};
return {
value: flag?.value,
convert: async () => {
flagsmith.trackEvent(metricEvent);
await flush();
},
};
}{
"mcpServers": {
"tableread": {
"command": "npx",
"args": ["tsx", "scripts/mcp.ts"],
"cwd": "/absolute/path/to/tableread"
}
}
}Use the flagsmith-rehearse skill for the named experiment. Verify the flag and metric, then check the target page. Show me the audience and evidence before proposing a rollout.
Install skills/flagsmith-rehearse or skills/flagsmith-experiment-preflight in your agent. Approve flag lifecycle changes in the console.