---
title: How do I build a Campaign in Find & Replace Mode?
description: Find &amp; Replace mode allows you to use either plain text or Regex code to search for and replace objects on the page. This topic shows you how to use Find &amp; Replace mode in SiteSpect's A/B Campaign Bui
---

[Skip to content](https://doc.sitespect.com/knowledge/how-do-i-build-a-campaign-in-find-replace-mode#main-content)

English

Show submenu for translations

![Monetate-Logo-Full-Color-1](https://doc.sitespect.com/hs-fs/hubfs/Monetate-Logo-Full-Color-1.png?width=340&height=49&name=Monetate-Logo-Full-Color-1.png)

- [A/B Testing](https://www.sitespect.com/testing-and-experimentation/)
- [Personalization](https://www.sitespect.com/personalization-targeting/)
- [Recommendations](https://www.sitespect.com/recommendations/)

Open main navigation

Close main navigation

- [A/B Testing](https://www.sitespect.com/testing-and-experimentation/)
- [Personalization](https://www.sitespect.com/personalization-targeting/)
- [Recommendations](https://www.sitespect.com/recommendations/)
- English
  
  Show submenu for translations

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge Base](https://doc.sitespect.com/knowledge?hsLang=en)
2. [Build](https://doc.sitespect.com/knowledge/build?hsLang=en)
3. [Setting Up a Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#setting-up-a-campaign)

# How do I build a Campaign in Find & Replace Mode?

Find & Replace mode allows you to use either plain text or Regex code to search for and replace objects on the page. This topic shows you how to use Find & Replace mode in SiteSpect's A/B Campaign Builder to build a simple test. The following are the basic steps:

1. Name the Campaign and make some initial settings.
2. Specify one or more Variations you'd like to test.
3. Assign one or more Metrics and a Key Performance Indicator (KPI) to the Campaign.
4. Include or exclude one or more Audiences.

These steps assume that you're [creating a Campaign](https://doc.sitespect.com/knowledge/how-do-i-build-a-campaign-in-find-replace-mode) with the fewest possible components: an A/B test with one Variation, one KPI, and one predefined Audience. After you build this Campaign, you'll be able to build a variety of Campaigns with more components.

#### Launching the A/B Campaign Builder

To open the A/B Campaign Builder, select **New** then **A/B Campaign**.

![How do I build a Campaign in Find & Replace Mode - Launching the AB Campaign Builder](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Launching%20the%20AB%20Campaign%20Builder.png?width=688&name=How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Launching%20the%20AB%20Campaign%20Builder.png)

The New Campaign page opens.

![How do I build a Campaign in Find & Replace Mode - New Campaign](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20New%20Campaign.png?width=688&name=How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20New%20Campaign.png)

The page is divided into four sections, one for each of the major tasks. The triangle toggle next to the section name opens and closes the page sections.

![How do I build a Campaign in Find & Replace Mode - New Campaign II](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20New%20Campaign%20II.png?width=688&name=How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20New%20Campaign%20II.png)

You do not have to build the entire Campaign in one session. To save your work between sessions, click **Save** at the bottom of the page. The Campaign does not start running until you start it manually by changing its [Status](https://doc.sitespect.com/knowledge/campaign-status-a/b-campaign-builder?hsLang=en) or the Campaign start date you specify arrives.

#### Name the Campaign

1. Open the **General** section of the page.
2. Enter a descriptive name for your Campaign. The name you enter appears in the **Campaign List**.
3. Leave the default Campaign status as **Review** while the Campaign is under construction.
4. Select **Standard** from the **Type** drop-down.
5. Leave the **[Frequency](https://doc.sitespect.com/knowledge/campaign-frequency?hsLang=en)** set to its default.
6. In the **Hypothesis** field, enter a brief statement that describes what this Campaign accomplishes; it explains what results you expect when you run this test.
7. In the **Tags** field, enter the name of a new or existing [Tag](https://doc.sitespect.com/knowledge/tags?hsLang=en). If it's new, SiteSpect asks you to confirm that you want to add the Tag.
8. Click **Yes** next to **Would you like to specify a date range?** and use the calendar to specify a start date in the **Begins** field. If you need one, you can specify an end date as well. Remember that if you don't specify an end date, once started, the Campaign runs until you stop it.
9. By default, the **Preview** field contains the domain for your site. This is your original website that you will use to preview of changes. In most cases, you'll leave this as is.

#### Specify Variations

Variations describe the changes you want to test on your website. You can define Variations using the [Visual Editor](https://doc.sitespect.com/knowledge/using-the-visual-editor?hsLang=en), the default, or Find & Replace mode. These instructions use **Find & Replace** mode so the first step is to change edit modes.

**Note:** You can use either Basic or Regex mode to specify what to look for. In Basic mode, you simply type exactly what you want to look for; there is no need to use any code. However, in Regex mode, you can use regular expressions to help you find what you're looking for on the page. See [Using Regular Expressions](https://doc.sitespect.com/knowledge/using-regular-expressions-in-sitespect?hsLang=en) in SiteSpect for more information.

1. On the right side of the Variations area, select **Find & Replace** from the **Select Edit Mode** drop-down.

![How do I build a Campaign in Find & Replace Mode - Specify Variations](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Specify%20Variations.png?width=688&name=How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Specify%20Variations.png)

Once you make this selection, the fields in the Variation section of the page change. Refer to [Variations Overview](https://doc.sitespect.com/knowledge/variations-overview?hsLang=en) to learn about all the components of this page area. In short, just remember that there is a Control—marked by the "C"—which is usually your original website, and as many Variations Groups as you choose to create. The following image shows you the Control. You can see that the Original is the website that is currently configured as the Site in SiteSpect. In this case, it is [http://www.stage.clothingco.com](http://www.stage.clothingco.com/).

![How do I build a Campaign in Find & Replace Mode - Specify Variations II](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Specify%20Variations%20II.png?width=688&name=How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Specify%20Variations%20II.png)

1. Open Variation1 and rename it if you like. The **When to Change** area defines Triggers, which determine when to show the changes to your visitors. Ensure that **URL** is selected, which tells SiteSpect that if a visitor arrives at this URL, you want to show that visitor some changes. In this field, enter the URL without the domain. For example, if you want to change the page located at [http://www.mysite.com/shirts/summer/sleeveless.html](http://www.mysite.com/shirts/summer/sleeveless.html), you'll use ^/shirts/summer/sleeveless.html. The ^ is a [regex character](https://doc.sitespect.com/knowledge/about-regular-expressions?hsLang=en) used to anchor the text; it matches at the start of the string.

![How do I build a Campaign in Find & Replace Mode - Specify Variations III](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Specify%20Variations%20III.png?width=688&name=How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Specify%20Variations%20III.png)

1. Use the **Find this** field to describe what you want to look for on the page. For example, if you're working on the page sleeveless.html and you want to change the word Camisole to Cami, enter Camisole.
2. Use the **Replace with this** field to enter Cami.

![How do I build a Campaign in Find & Replace Mode - Specify Variations IV](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Specify%20Variations%20IV.png?width=688&name=How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Specify%20Variations%20IV.png)

#### Assign Metrics

A [Metric](https://doc.sitespect.com/knowledge/about-metrics?hsLang=en) is a user behavior you want to influence and measure. You can use Metrics in your Campaigns to learn how your changes have affected visitor behavior. A [KPI](https://doc.sitespect.com/knowledge/key-performance-indicator-summary?hsLang=en) or Key Performance Indicator is the Metric you have chosen to be the most important measurement of the Campaign.

**Note:** You cannot define Metrics in the Campaign Builder. You must use the Metrics area to create them. See [Creating a Metric](https://doc.sitespect.com/knowledge/creating-a-metric?hsLang=en) for more information.

The Metrics area of the page allows you to select a Key Performance Indicator (KPI), which is required, as well as Metrics.

The following image shows the Metrics area of the New Campaign page. The image shows **Numeric Value** as the KPI. If you have defined a Metric as the **Critical Metric**, a setting on the Metrics page when you define it, then it shows up here as the KPI. You can change it if you like.

![How do I build a Campaign in Find & Replace Mode - Assign Metrics](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Assign%20Metrics.png?width=688&name=How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Assign%20Metrics.png)

1. Select a **Metric** from the **Metrics List**–if one isn't already specified by default–and drag it to the KPI area of the page
2. Select one or more **Metrics** from the **Metrics List** and them to the **Assigned Metrics** field.

#### Assign Audiences

[Audiences](https://doc.sitespect.com/knowledge/about-audiences?hsLang=en) determine which users are included in or excluded from a Campaign.

**Note:** You cannot define Audiences in the Campaign Builder. You must use the Audiences area to create them. See [Creating a New Audience](https://doc.sitespect.com/knowledge/creating-a-new-audience?hsLang=en) for more information.

The following image shows that visitors who use Yahoo will be excluded from the Campaign. It does not show any Audiences to include.

![How do I build a Campaign in Find & Replace Mode - Assign Audiences](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Assign%20Audiences.png?width=688&name=How%20do%20I%20build%20a%20Campaign%20in%20Find%20%26%20Replace%20Mode%20-%20Assign%20Audiences.png)

1. In the **Audiences** section, drag one or more Audience from the Audience List to the **Required** field to include those users in the Campaign.
2. Drag one or more Audience to the **Excluded** field to exclude them from the Campaign.

When more than one Audience is selected, a visitor must meet criteria specified by all Audiences in order to be included in the Campaign. Be sure you do not include Audiences that make it impossible for a visitor to be included. For example, don't include one Audience that specifies that the visitor must come from Massachusetts AND another Audience that specifies that the visitor must come from California. If you do, the Campaign will have no assignments.

### Save the Campaign

Be sure to click **Save** at the bottom of the Campaign Builder page to save the Campaign.

- [Get Started](https://doc.sitespect.com/knowledge/get-started?hsLang=en#main-content)

    - [SiteSpect Support](https://doc.sitespect.com/knowledge/get-started?hsLang=en#sitespect-support)
    - [Overview Information](https://doc.sitespect.com/knowledge/get-started?hsLang=en#overview-information)
    - [Intro to SiteSpect](https://doc.sitespect.com/knowledge/get-started?hsLang=en#intro-to-sitespect)
    - [Account Setup](https://doc.sitespect.com/knowledge/get-started?hsLang=en#account-setup)
    - [Artificial Intelligence](https://doc.sitespect.com/knowledge/get-started?hsLang=en#artificial-intelligence)
- [Dashboard](https://doc.sitespect.com/knowledge/dashboard?hsLang=en)
- [Build](https://doc.sitespect.com/knowledge/build?hsLang=en#main-content)

    - [Setting Up a Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#setting-up-a-campaign)
    - [Create a Client-Side Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#create-a-client-side-campaign)
    - [Create a Server-Side Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#create-a-server-side-campaign)
    - [Metrics](https://doc.sitespect.com/knowledge/build?hsLang=en#metrics)
    - [Audiences](https://doc.sitespect.com/knowledge/build?hsLang=en#audiences)
    - [Triggers](https://doc.sitespect.com/knowledge/build?hsLang=en#triggers)
    - [Variations](https://doc.sitespect.com/knowledge/build?hsLang=en#variations)
    - [Traffic Management](https://doc.sitespect.com/knowledge/build?hsLang=en#traffic-management)
    - [Preview](https://doc.sitespect.com/knowledge/build?hsLang=en#preview)
    - [Factors](https://doc.sitespect.com/knowledge/build?hsLang=en#factors)
    - [Advanced Settings](https://doc.sitespect.com/knowledge/build?hsLang=en#advanced-settings)
    - [Omnichannel](https://doc.sitespect.com/knowledge/build?hsLang=en#omnichannel)
    - [Regular Expressions (Regex)](https://doc.sitespect.com/knowledge/build?hsLang=en#regular-expressions-regex)
    - [WATTS](https://doc.sitespect.com/knowledge/build?hsLang=en#watts)
    - [Recommendations](https://doc.sitespect.com/knowledge/build?hsLang=en#recommendations)
- [Monitor](https://doc.sitespect.com/knowledge/monitor?hsLang=en)
- [Analyze](https://doc.sitespect.com/knowledge/analyze?hsLang=en#main-content)

    - [Data Export and Integration](https://doc.sitespect.com/knowledge/analyze?hsLang=en#data-export-and-integration)
    - [SiteSpect Reports](https://doc.sitespect.com/knowledge/analyze?hsLang=en#sitespect-reports)
- [Site](https://doc.sitespect.com/knowledge/site?hsLang=en#main-content)

    - [Tools](https://doc.sitespect.com/knowledge/site?hsLang=en#tools)
    - [Configuration](https://doc.sitespect.com/knowledge/site?hsLang=en#configuration)
- [Developers](https://doc.sitespect.com/knowledge/developers?hsLang=en#main-content)

    - [API Reference](https://doc.sitespect.com/knowledge/developers?hsLang=en#api-reference)
    - [Code Samples](https://doc.sitespect.com/knowledge/developers?hsLang=en#code-samples)
    - [Tips & Tricks](https://doc.sitespect.com/knowledge/developers?hsLang=en#tips-tricks)
- [Mobile](https://doc.sitespect.com/knowledge/mobile?hsLang=en)
- [Implementation, Deployment, and Security](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#main-content)

    - [How does SiteSpect work with CDNs?](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#how-does-sitespect-work-with-cdns)
    - [Single Tenant Implementations](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#single-tenant-implementations)
    - [Security Features](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#security-features)
    - [Deployment and Implementation Overview](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#deployment-and-implementation-overview)
    - [SiteSpect Engine & Admin API](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#sitespect-engine-admin-api)
- [Third-Party Integration](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en#main-content)

    - [Google](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en#google)
    - [Zuko](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en#zuko)
- [Troubleshooting](https://doc.sitespect.com/knowledge/troubleshooting?hsLang=en)
- [Releases](https://doc.sitespect.com/knowledge/releases?hsLang=en#main-content)

    - [Superfresh](https://doc.sitespect.com/knowledge/releases?hsLang=en#superfresh)
- [Feedback](https://doc.sitespect.com/knowledge/feedback?hsLang=en)

- [A/B Testing](https://www.sitespect.com/testing-and-experimentation/)
- [Personalization](https://www.sitespect.com/personalization-targeting/)
- [Recommendations](https://www.sitespect.com/recommendations/)

[![Monetate-Logo-Full-Color-1](https://doc.sitespect.com/hs-fs/hubfs/Monetate-Logo-Full-Color-1.png?width=200&height=29&name=Monetate-Logo-Full-Color-1.png "Monetate-Logo-Full-Color-1")](http://monetate.com)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026, Monetate