How to A/B test different theme templates for the same PDP on Shopify

Want to test a completely different layout on the same PDP URL? Here's how.

Rob Johnson

by Rob Johnson

Jan 21st 2021

A/B testing is a standard of increasing conversion rates. Sometimes you may want to see how two different PDP templates compare in performance for the same product, but you don't want to create two different products in your Shopify catalog.

Rendering a different template is easy. Use the view param.

https://yourstore.com/products/cool-shirt?view=other-template-name

You can do the same for other pages also.

https://yourstore.com/pages/my-page?view=other-template-name

Now you can direct traffic to the same PDP, but split to different templates.

# Default template
https://yourstore.com/products/cool-shirt
# Other test template
https://yourstore.com/products/cool-shirt?view=other-template-name

Easy peasy.