# Optimizing Popup Components

{% hint style="info" %}
You can follow along step by step to manage and optimize the main popup.
{% endhint %}

This document explains the process of running an A/B Test with Remote Config, using popup optimization as an example. Anyone can easily set it up by following each step in order.

## Optimizing Popup Components

Regardless of industry or service type, most services display a popup when users enter a screen. This document uses a popup displayed on the home screen as an example to show how to apply Remote Config and how it can be used in A/B Tests.

### 1. Managing the Popup with Remote Config

Assume you are running a Fri/Sat/Sun discount promotion offering up to 75% off, as shown in the image.

![Service screen example](/files/mU4THAz1gXNgyCx6r0Vu)

Go to Hackle's Remote Config tab > Create New Parameter > and create a parameter key named **Home\_banner**. Let's **configure the components in JSON as desired.**

![Creating a Remote Config to manage the popup](/files/LBE2OWKgtrbZAAtUreBp)

As shown in the image below, include all popup components (image, title, description) in JSON and save. Changes are reflected immediately upon saving.

![Managing popup components with Remote Config JSON](/files/NEruR0YkIVQTIMSh1XCn)

### 2. Running an A/B Test to Validate the Popup's Effectiveness

Previously, all users were shown a promotion copy emphasizing a weekend-only, time-limited offer.

Run an A/B Test against a version that emphasizes the maximum discount rate to measure its effectiveness.

* Original copy (Group A): Weekend-only, time-emphasized copy
  * "title": "Weekend Sale, Makeup Special"\
    "description": "3 days only every Fri/Sat/Sun! Maximum benefits! Spring exclusive special"
* New copy (Group B): Maximum discount rate emphasized copy
  * "title": "Up to 75% Off, Makeup Exclusive Special"\
    "description": "That product you've been eyeing — up to 75% off, the biggest discount ever"

![](/files/bnSCfRHxwNgzHsk1iTJS)

![Designing an A/B Test with different emphasis copy for the popup](/files/dU5HwF9Uh8eYM5i95cNo)

### 3. Updating and Managing Condition-based Copy with Remote Config

Update the JSON in Remote Config. Set exposure rules and detailed changes to apply them immediately.\
**You can target A/B Test groups directly from Remote Config without having to reconfigure users.** Select the experiment key and update the copy for Group B as shown in the image below — changes are reflected immediately.

![Managing A/B Test copy using Remote Config](/files/dPHkEMBQXbbDTc3Px5hB)

### 4. Confirming Results and Optimizing with the A/B Test

With the Remote Config changes applied, check the A/B Test screen to view results like the ones shown below.

Review the success metric (click-through rate on the main popup) for each variation, select the better-performing test group as the Winner, and apply it to your service.

This way, you can **run experiments without any separate code work using Remote Config**, and quickly optimize your service by reviewing detailed A/B Test results. (See [A/B Test Data Analysis](/en/ab-test/data-analysis/interpret-results.md))


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hackle.io/en/remote-configs/ab-test-example/how-to-optimize-popup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
