> ## Documentation Index
> Fetch the complete documentation index at: https://hilfe.converic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Show different texts with variables

> Variables swap texts on a landing page or website depending on a URL parameter, for example the city or the ad keyword in the link.

Variables let one page speak to many audiences. You place a placeholder such as `{{City}}` in a text. When a visitor opens the page through a link with `?city=boston`, the placeholder turns into the text you stored for that value. Without a matching value, the page shows the default.

Variables work the same way on landing pages and on websites. You find them under **Settings** in the **Variables** area.

## Create a variable

**1. Add the variable**

Click **Add variable** and fill in the three fields.

| Field | Meaning |
| - | - |
| **Name** | The name of the placeholder. `City` becomes `{{City}}`. Letters, numbers, `-` and `_` are allowed. |
| **Default value** | The text shown when the link contains no matching value. |
| **URL parameter** | The part of the link the page reads. For `…/page?city=boston` it is `city`. |

**2. Add values**

Click **Add value** for every case you want to cover. **Value in the URL** is what stands in the link, for example `boston`. **Displayed text** is what visitors read, for example `Boston`. Upper and lower case in the link do not matter.

**3. Save and use it**

Save the variables. Then type the placeholder into any text field of a section, for example into the headline: `Solar panels for {{City}}`.

## Example

| Link | Headline |
| - | - |
| `offer.example.com` | Solar panels for your home |
| `offer.example.com?city=boston` | Solar panels for Boston |
| `offer.example.com?city=salem` | Solar panels for Salem |

Here the variable `City` has the default value `your home`, the URL parameter `city` and two values.

## Limits

* Up to 20 variables per page or website.
* Up to 50 values per variable.
* Each variable name may be used only once.
* A website can have up to 20 variants. Every combination of values counts as one variant, because Converic builds a separate version of the affected pages when you publish.

> [!NOTE]
>
> In a [Custom HTML block](https://hilfe.converic.com/websites/custom-html.md), placeholders work inside field values, not in the HTML itself.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.