Google

AMP now supports A/B testing and other experiments

google-amp-speed-rocket-launch2-ss-1920

Now you can run experiments, such as A/B tests, using AMP pages. This was announced on the AMP blog. “[W]e’ve launched a new AMP component that allows you to conduct user experience experiments on an AMP page,” Google said.

Within the code, you can specify how much traffic to send to which experiment. The <amp-experiment> element allows you to specify all experiment behaviors via a JSON configuration. Plus, through this new configuration, it will expose additional analytics reporting attributions so you can collect enough data to decide which experiment works best.

Here is sample code on how to use <amp-experiment> — and you can read this blog post to learn more.

Explore more on

Accelerated Mobile Pages Google JSON User experience design Web development
Add Search Engine Land as a preferred source on Google

Editorial disclosure

Search Engine Land is owned by Semrush. We remain committed to providing high-quality coverage of marketing topics. Unless otherwise noted, this page’s content was written by either an employee or a paid contractor of Semrush Inc.

About the author

Barry Schwartz
Barry Schwartz is a technologist and a Contributing Editor to Search Engine Land and a member of the programming team for SMX events. He owns RustyBrick, a NY based web consulting firm. He also runs Search Engine Roundtable, a popular search blog on very advanced SEM topics.

In 2019, Barry was awarded the Outstanding Community Services Award from Search Engine Land, in 2018 he was awarded the US Search Awards the "US Search Personality Of The Year," you can learn more over here and in 2023 he was listed as a top 50 most influential PPCer by Marketing O'Clock.

Barry can be followed on X here and you can learn more about Barry Schwartz over here or on his personal site.