> For the complete documentation index, see [llms.txt](https://docs.crobox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.crobox.com/how-to-guides/settings/website-integration/placeholders.md). Agents can also search and read this documentation through its [MCP server](https://docs.crobox.com/~gitbook/mcp).

# Placeholders

Define the places on your website where experiences can appear.

A **placeholder** is a place on your website where an experience can appear, such as a campaign message under the product title or a Finder banner on a listing page. You define it once here, then select it in each experience that should appear there.

Open **Settings → Website integration → Placeholders**. The overview lists each placeholder with its **ID**, **Name**, **Page types**, **Type**, when it was last updated, and its **Status**: **Active** when an experience uses it, **Inactive** when none does. If your account has App Integration, it also shows each placeholder's **Channel**.

### Create a placeholder

{% stepper %}
{% step %}

#### Name it

Click **Add placeholder** and give it a **Name** that says where it is, such as *PDP – below product title*. This is the name people pick in experiences.
{% endstep %}

{% step %}

#### Choose its channel

If your account has App Integration, select the **Channel** where the placeholder is shown:

* **Website** - The Crobox snippet inserts the placeholder into your page at its **CSS Selector**. This is the default.
* **App** - A place in your iOS or Android app. An App placeholder has no position on a page: the app requests its promotions through the Crobox SDK and draws them itself. See [Mobile App SDKs](https://docs.crobox.com/technical-documentation/mobile-app-sdks.md#show-campaign-messages).

Without App Integration, every placeholder is a Website placeholder and this field isn't shown.
{% endstep %}

{% step %}

#### Choose its position

* **CSS Selector** - The element on your page the placeholder is placed next to or inside, such as `.product-title` or `#main-content`.
* **Use all selector results** - Places the placeholder in every element that matches the selector, such as every product tile. If it's off, only the first match is used.
* **Mode** - Where to place it relative to that element: **After Parent Element**, **Before Parent Element**, **Append Within Parent Element**, **Prepend Within Parent Element**, or **Replace / Hide Parent Element**.
* **Available Slots** - How many experiences can appear in it one after another. The default is 1.

An **App** placeholder only has **Available Slots**. The other settings here, and the Advanced Settings below, are for Website placeholders.
{% endstep %}

{% step %}

#### Choose its type

Select a **Placeholder type**:

* **Multi-product** - Appears on many products at once, such as product tiles on a listing page. Select the **ID Extractor** that reads each tile's product ID.
* **Single-product** - Belongs to one product, such as on a product detail page.
* **Product-independent** - Not tied to a product, such as a banner on the home page.
  {% endstep %}

{% step %}

#### Choose when it's active

Under **Activated by**, select the triggers that activate the placeholder, such as a page type loading. Click a trigger to see its setup.
{% endstep %}

{% step %}

#### Save and publish

Save the placeholder, then publish your website integration in **Settings → Versions** to make it available on your website.
{% endstep %}
{% endstepper %}

#### Advanced Settings

Open **Advanced Settings** to change the wrapper Crobox inserts around the experience:

* **Element** - The HTML element of the wrapper, such as `div`.
* **CSS Classname** - A class on the wrapper, to style it from your own CSS.
* **Advanced CSS Rules** - CSS applied to the placeholder.

### Use a placeholder in an experience

Select placeholders where you choose an experience's location:

* **Campaigns** - In the **Locations** step. See [Create a Campaign](https://docs.crobox.com/how-to-guides/dynamic-messaging/how-to-create-a-dynamic-messaging-campaign.md).
* **Product Finder activations** - In the **Locations** step of an activation. See [Create Activations](https://docs.crobox.com/how-to-guides/product-finders/create-activations.md).

### Remove a placeholder

Open the menu at the end of a row and select **Remove**. Check its **Status** first: removing an **Active** placeholder takes away a location an experience uses.

### Frequently asked questions

<details>

<summary>I created a placeholder. Why doesn't it appear on my website?</summary>

Placeholders go live when you publish your website integration in **Settings → Versions**. Also check that the **CSS Selector** matches an element on the page, and that a trigger under **Activated by** fires there.

</details>

<details>

<summary>Why doesn't my app show anything in a placeholder?</summary>

Work through the same checks as for a website: the website integration is published in **Settings → Versions**, a campaign uses the placeholder, and a trigger under **Activated by** fires for the screen's page type. Then check what is specific to the app: the placeholder's **Channel** is **App**, the app requests promotions with this placeholder's **ID**, and the campaign uses one of the [mobile app components](https://docs.crobox.com/technical-documentation/mobile-app-sdks.md#mobile-app-components).

</details>

<details>

<summary>Can more than one experience use the same placeholder?</summary>

Yes. **Available Slots** sets how many can appear in it at once, one after another.

</details>

<details>

<summary>Which placeholder type should I choose?</summary>

Choose **Multi-product** for product tiles on listing pages, **Single-product** for a product detail page, and **Product-independent** for anything not about a product.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.crobox.com/how-to-guides/settings/website-integration/placeholders.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
