AMP now supports A/B testing and other experiments

Check out the new amp-experiments component that lets you easily test different variations of your AMP pages.

Chat with SearchBot

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.


About the author

Barry Schwartz
Staff
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.

Get the newsletter search marketers rely on.