Skip to main content
All CollectionsURL Redirect Test
How to test product content in product detail page (PDP)?
How to test product content in product detail page (PDP)?

Step-by-Step Guide to A/B Testing Product Images on Your PDP

Leo avatar
Written by Leo
Updated over 3 weeks ago

While the template test can be used to experiment with PDP layouts, testing product content requires duplicating the product and leveraging a URL redirect test.

In this article, we will walk you through each step to achieve it.

Step 1: Duplicate the Product

Access the Original Product

Navigate to the product page of the original product in your Shopify admin.

Duplicate the Product

Click the “Duplicate” button at the top of the page to create a copy.

Step 2: Edit the Duplicate Product

Customize the Duplicate Product

Navigate the duplicate product page and modify its title, images, or description as needed for your test.

Step 3: Hide the Duplicate Product from the Storefront

To avoid displaying duplicate products alongside the original in your store, you’ll need to hide the duplicate product.

Based on Collection Settings

Adjust your collection settings to exclude the duplicate product.

For example, if a collection displays products tagged as “sport,” you need to remove this tag from the duplicate product.

[Advanced] Hide from collections/all page

  • Add a specific tag (e.g., “duplicate”) to the duplicate product in Shopify settings.

  • Navigate to Sales Channel > Online Store > Themes, and click “Edit Code.”

  • Locate the code that loops through products and add a condition to filter out the duplicate product:

{% for product in collections.products %}
{% unless product.tags contains 'duplicate' %}
<!-- Your code to display the product -->
{% endunless %}
{% endfor %}

Step 4: Set Up the URL Redirect Test

Follow this guide to create a URL redirect test that directs visitors to either the original or the test product.

By setting this up, you can effectively test how different product images impact customer behavior without cluttering your storefront.

Did this answer your question?