Launching your first Search campaign using Search widget
This tutorial guides you through creating and deploying your first AB Tasty search campaign. You will learn how to set up the search widget, configure its display options, customize translations and styling, and launch it on your website.
Prerequisites
Before you begin, ensure you have:
Completed the search configuration process (see "Getting started with AB Tasty search")
Access to AB Tasty Web Experimentation & Personalization platform
Editor or administrator permissions to create campaigns
The CSS selector or location of your website's current search bar element
Translation requirements for your target audience (if applicable)
Steps
Create an AB test campaign
Navigate to the AB Tasty Web Experimentation & Personalization platform and create a new campaign:
Log in to your AB Tasty account
Access the Web Experimentation & Personalization section
Click Create campaign
Select AB test as the campaign type
Configure basic campaign settings (name, URL targeting, audience)
Proceed to the visual editor
Configure the widget layout
Define how and where the search widget displays on your website:
In the visual editor, click Active changes
Locate the blocks related to the Search widget
Click Edit on the layout configuration block
Choose your display mode:
Modal: Search results appear in an overlay window
Element-based: Search results appear near a specific element on the page
Select the trigger element
Configure which element triggers the search widget display:
Navigate to the Element Selector section
Choose one of two methods to select your website's search bar:
Click Pick in the editor to use the manual picker tool and click on your search bar element in the preview
Enter the CSS selector directly in the Element Selector field (for example:
#search-input
or.search-bar
)
Verify that the correct element is selected
The search widget will activate when visitors interact with this element.
Translate field names
Customize the language and terminology displayed in the search widget:
Access the Content section in the widget editor
Locate the Translation keys dictionary
Add key-value pairs to translate field names from English to your desired language
Enter translations for fields such as:
Search placeholder text
Filter labels
Sort options
Call-to-action buttons
Ensure proper JSON syntax (no comma after the last item in the dictionary)
Example translation entry:
"search_placeholder": "Search products",
"filter_by_price": "Price range",
"sort_by_relevance": "Most relevant"
If your product catalog attributes use specific naming conventions, adjust the translations accordingly.
Customize the widget styling
Adapt the visual appearance of the search widget to match your website design:
Navigate to the Style section in the widget editor
Modify styling properties for each widget element:
Colors and backgrounds
Typography and font sizes
Spacing and padding
Border styles
Button appearances
Use the standard styling interface similar to other AB Tasty widgets
For advanced customization:
Access the Expert mode section
Add custom CSS code to achieve specific design requirements
Preview changes in the visual editor
Ensure the widget styling aligns with your brand guidelines and website aesthetics.
Launch your campaign
Once testing is complete, launch your search campaign live:
Review all campaign settings and widget configurations
Verify your audience targeting and URL conditions
Click Launch or Activate campaign
Confirm the launch action
Monitor the campaign status to ensure it activates successfully
Your search widget is now live on your website. Follow the same launch process as you would for any other AB Tasty campaign.
Next steps
You have successfully launched your first AB Tasty search campaign. The search widget is now active on your website and visitors can use it to find products.
Last updated
Was this helpful?