A/B testing hero images from Storyblok asset fields
I am a designer turned dev and we have three hero images I want to test against each other on the homepage.
The hero block has an asset field for the image. Text fields map to slots fine. Do image fields work the same way? And how many variants can one experiment hold, three images plus the current one is four
Short questions but they decide the whole test design for me.
1 answer
Good news on both counts.
Image fields map like any other field. The only Storyblok field types that are not supported are rich text, table, and reference fields. Everything else on a block, asset fields included, maps normally, so your hero image is fine.
On variant count: experiments support 2 to 5 variants, with a primary goal and a traffic allocation percentage. Four variants (current image plus three challengers) fits comfortably.
One modeling detail worth knowing before you build it: the variants live in the experiment layer, not in Storyblok. Your hero block stays the single canonical version and the default fallback, and each variant in the experiment carries its own image value. So you do not duplicate blocks or clutter the space with three extra heroes, the block your editors see stays exactly one.
Perfect. One block, four variants in the experiment. Clean. Thanks!