Image Swap Using Find & Replace

We've created both a video and some step-by-step instructions to help you learn how to swap an image on one of your web pages using SiteSpect's find and replace tool.

This training video helps you learn how to build an image swap Campaign.

 

 

 

 

Image Swap Using Find & Replace – Step-by-step Instructions

Your marketing department would like to test a new hero image that they believe will be more engaging and will result in more users clicking the Buy Now button. The following image shows the current PM Clothing.CO home page.

Image Swap Using Find & Replace - PM Clothing Co

Your marketing department thinks that the following image will work better.

Image Swap Using Find & Replace - Girl in Flower Field

Step 1 – Create a New Campaign

For this simple test, you’ll create a Campaign in SiteSpect's Campaign Builder. You can create most types of A/B tests using this simple, single-page form. To start creating the Campaign, select NewA/B Campaigns.

Image Swap Using Find & Replace - Step 1 New Campaign

Step 2 – Specify the Campaign Name, Hypothesis, and Preview URL

To specify the Campaign Name, Hypothesis, and Preview URL:

  1. Name the Campaign More Engaging Hero and select Standard as the Type.
  2. Specify the following Hypothesis for the test: "Visitors are more likely to click Buy Now on the updated image." The Hypothesis helps others understand the why you designed the Campaign as you did and helps when it comes time for Campaign analytics.

    Image Swap Using Find & Replace - Step 2 More Engaging Hero

Step 3 – Create a Variation

In this step, use SiteSpect’s Find and Replace method to change the URL of the hero image to the one you’d like to test.

  1. Change the name of Variation 1 to New Hero.

    Image Swap Using Find & Replace - Step 3 Variation

  2. Specify the Trigger, which determines which pages to change. For this Campaign, enter /index.html. This means that changes are applied only when the URL contains /index.html. This is important because we want to make these changes only on the home page and not on any other pages.

    Image Swap Using Find & Replace - Step 3 New Image

  3. Specify the URL of the hero image in the Find This field, which determines what you want to change. The image below displays the URL as /assets/img/content/slider-06.jpg. This tells SiteSpect to locate this URL on the page.

  4. Specify the URL of the new hero image in the Replace With This field, which determines the location of the replacement image. The image below displays the URL as /__ssobj/static/SummerDresses3.jpg. This tells SiteSpect to replace what it found in the Find This field with the contents of the Replace With This field.

    Image Swap Using Find & Replace - Step 3 What to Change

In addition to changing the image on the page, we're going to use this Variation to change the look of the secondary message that is called out in the following image.

Image Swap Using Find & Replace - Step 3 PM Clothing Co

To change the look of the secondary message so that it looks better with the new hero image, insert a style block before the closing </head> tag that specifies a new color as follows:

  1. To add a Variation to the Variation Group, open the three-dot menu on the right side of the page and select Add to All. In this second Variation, you’ll specify how to change that text style.

    Image Swap Using Find & Replace - Step 3 Add to All

  2. Rename the new Variation to Overlay Style by clicking on the word Variation and typing over it.

    Image Swap Using Find & Replace - Step 3 Variation II

  3. Create a URL Trigger, select Contains from the Trigger pull-down, and specify /index.html. In the Find This field, enter </head> so that SiteSpect searches for the closing head tag.
  4. In the Replace With This field, enter the text that you see in the image below. The text is here for you to copy and paste.

    Image Swap Using Find & Replace - Step 3 Variation Group

  5. Finally, rename Variation Group 1 to More Engaging Hero.

    Image Swap Using Find & Replace - Step 3 More Engaging Hero

Step 4 – Select Metrics and a Key Performance Indicator

Drag and drop the Metrics that help you understand which Variation performed the best. The Key Performance Indicator (KPI) is the most important Metric for the A/B Campaign.

For this Campaign, you want to see if the new hero image increases the number of visitors who land on the Category Page, so drag and drop the Category Page Metric to the KPI area.

Image Swap Using Find & Replace - Step 4 Metrics

Step 5 – Select an Audience

For this test, you want to include only visitors who are using a tablet. Drag and drop the Device: Tablet Audience into the Include area.

Image Swap Using Find & Replace - Step 5 Audiences

Step 6 – Save the Campaign

  1. To save the Campaign, click Save.

    Image Swap Using Find & Replace - Step 6 Save

Step 7 – QA the Campaign

To preview the Variation, click the Preview icon in the Variations area.

Image Swap Using Find & Replace - Step 7 Original

At the bottom of the page, the Preview Diagnostics panel displays the Variation changes applied to this page. Clicking the Buy Now button also displays the Category Page Metric in this area.

Image Swap Using Find & Replace - Step 7 PM Clothing Co

Step 8 – Set the Campaign to Active – Running

When you first create a Campaign, it is in Review. After QA is complete, you can change the Status to Active – Running, which turns the Campaign on and allows visitors to be assigned to either the Control or the Variation. To change the Status of the Campaign:

Note: Data starts to appear in the Campaign about 45 minutes to 2 hours after the Campaign is made active.
  1. Open the Campaign again: select BuildCampaignsCampaign List, then select the Campaign.
  2. In the Status field, select Active - Running.

    Image Swap Using Find & Replace - Step 8 Status

  3. Click Save at the bottom of the page.

Step 9 – Results

The A/B Campaign has been running for two weeks now, and you’re ready to look at the results. The Performance Matrix shows comparisons of Metrics between the Control and Variation hero image.

Image Swap Using Find & Replace - Step 9 Performance Matrix

In the Metrics section, you can see a 60.92% lift in views (Totals) of the Category Page from 33.85% more visits (Uniques) than in the Control. Both comparisons are reporting at full confidence (99.99% Sig).

A/B Campaign Conclusion: Your new hero image encouraged more users to click through to the Category page.

Image Swap Using Find & Replace - Step 9 Metrics