Expérimentations (tests A/B)
Utilisez window.INTA.experiment pour répartir le trafic entre des variantes de bandeau. Vous pouvez lancer :
- Des tests A/B généraux pour tous les visiteurs
- Des tests par canal en ajoutant une règle
channel.match(par exempleutmSource)
La forme lisible par machine est décrite sous experiment dans la référence window.INTA JSON Schema et dans /schemas/window-inta.json.
Exemple canal spécifique
<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>Exemple général
<script>
window.INTA.experiment = {
id: "global-banner-test",
variants: {
control: { weight: 50 },
variant: {
weight: 50,
settings: {
design: "overlay",
color: "#0f766e",
},
},
},
};
</script>Last updated