Experiments (A/B testing)
Use window.INTA.experiment to split traffic between banner variants. You can run:
- General A/B tests for all visitors
- Channel-specific tests by adding a
channel.matchrule (for exampleutmSource)
The machine-readable shape is described under experiment in the window.INTA JSON Schema and /schemas/window-inta.json.
Channel-specific example
<script>
window.INTA.experiment = {
id: "microsoft-ads-banner-test",
channel: {
id: "microsoft_ads",
label: "Microsoft / Bing Ads",
match: {
utmSource: ["bing", "microsoft", "msads", "msn"],
},
},
variants: {
control: {
weight: 50,
},
variant: {
weight: 50,
settings: {
design: "overlay",
color: "#008cb4",
textOverridePresetId: "copy-b2b-professional",
},
},
},
};
</script>General example
<script>
window.INTA.experiment = {
id: "global-banner-test",
variants: {
control: { weight: 50 },
variant: {
weight: 50,
settings: {
design: "overlay",
color: "#0f766e",
},
},
},
};
</script>Last updated