# Put the visitor's country in your headline with dynamic text

> Write a line once and let each visitor read their own country, state or local time in it. How dynamic text works, and the fallback to set.

Use cases · Published 2026-11-10

Dynamic text lets you write a line once and have each visitor read their own country, state or local time in it. *Free delivery to {{country}}* reads *Free delivery to Germany* for a visitor from Germany and *Free delivery to France* for one from France. One rule replaces a rule per country, as long as the rest of the sentence is true everywhere it shows.

## The variables

Put these anywhere a rule shows text ([Dynamic text](https://geoengage.app/docs/rules/dynamic-text)):

| Variable | Becomes | Example |
| --- | --- | --- |
| `{{country}}` | The visitor's country | Germany |
| `{{state}}` | The state or region | Bavaria |
| `{{timezone}}` | The visitor's timezone | Europe/Berlin |
| `{{date}}` | Today's date, in the visitor's format | 19.9.2026 |
| `{{time}}` | The time now, in the visitor's format | 14:05:09 |

They work in titles, text, buttons and links, in **Replace Text** and **Insert HTML**, and in form fields with **Prefill Form**.

## Always set a fallback

A visitor whose location can't be found gets an empty gap: *Free delivery to* and nothing after. Give each variable a fallback after a bar, and that's shown instead:

```text
Free delivery to {{country|your country}}
```

Or make sure the value is known before the line shows: a condition such as **Country Code** is one of the countries you deliver to only matches visitors who can be placed, so `{{country}}` is always filled for them.

## Build it

1. Create a rule. Under **When visitor matches**, add **Country Code** is one of `DE, FR, ES, IT`: the countries the sentence is true for.
2. Choose **Sticky Bar**, and write *Free delivery to {{country}} on every order*.
3. Choose **Save & Publish**.

[Try this rule in the GeoEngage rule builder](https://geoengage.app/try), no account needed.

## More than delivery

- **Lead and demo forms:** **Prefill Form** can put `{{country}}` into a form's country field, so visitors type one thing fewer. It fills a dropdown by an option's value or the words it shows, and leaves a field the visitor has already filled alone ([Actions](https://geoengage.app/docs/rules/actions#change-the-page)).
- **Where you work:** *We work with clients across {{country}}*, in a rule aimed only at the countries you serve.
- **A sign-up line:** *Join teams in {{country|your country}}*, under a headline that stays the same for everyone.

## Where it reads well, and where it doesn't

- **Country names are in English.** A visitor from Germany reads *Germany*, not *Deutschland*. For a page in another language, write a rule for that country with the name in that language instead.
- **The state is unknown more often than the country.** Use `{{state}}` only with a fallback, or in text where a gap doesn't hurt.
- **Keep the claim true for everyone it reaches.** The condition decides who reads the sentence; the variable only names their country.

## Check that it helped

Is a line with the visitor's country better than a general one? An A/B test can answer it. Give one variant *Free delivery to {{country}}* and the other *Free delivery on every order*, and compare them on your goal ([A/B tests](https://geoengage.app/docs/rules/ab-tests)).

## Common questions

### Can it show the visitor's city?

GeoEngage leaves city out on purpose: IP location often gets the city wrong, and a wrong city in a headline reads worse than none.

### Can it convert a price into their money?

No. Dynamic text names places and times; it can't change a price. Prices per country are set in your store's own settings.

---

Source: https://geoengage.app/blog/put-visitor-country-in-headline
