# Controlling campaign visibility

You can control which customers see your campaign block on your storefront. This gives you flexibility to run broad promotions for everyone, keep campaigns private, or target specific customer segments.&#x20;

For example, you might make a VIP discount visible only to customers with a `VIP` tag, while showing a seasonal sale banner to all visitors.

Choose between the following visibility settings:

* **Everyone**: All store visitors can see the campaign
* **Hidden (private access only)**: Only visitors with secure private links that you give them can access the campaign. Copy the link provided after selecting this option and share.
* **Targeted customers**: Show the campaign block to only customers who meet the conditions that you set

***

## Change the visibility settings of an existing function

By default, a newly created function is visible to all customers. However, you can set the visibility setting in the initial setup of the function, or change it after it's published from the campaign dashboard.

**Steps:**

1. From the app dashboard, under **Functions library**, find the function that you want to edit.
2. Click the more options menu (**⋮**) to open the campaign dashboard.&#x20;
3. Under **Control visibility**, choose an option. Depending on your choice, you need to set certain conditions to complete the setup.
   1. **Everyone**
   2. **Hidden (private access only)**
   3. [**Targeted customers**](#targeted-customers)
4. Click **Save**.

### Targeted customers

If you want to show the campaign to only certain customers based on conditions you set, then choose **Targeted customers** in the **Control visibility section.**

You can set conditions based on: **customer total spend, customer tags,** or **customer order count,** and then set the limits or tags based on your campaign requirements.&#x20;


---

# 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://support.functionjunctionapp.com/creating-and-publishing/controlling-campaign-visibility.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.
