# Lander Data

> Record what visitors choose on your landers, see which answers convert, and send an outcome to your offers.

Lander Data records the answers visitors give on your landers, such as their age on a quiz or the plan they tap, and shows which answers lead to conversions.

A dating quiz is a common example. It asks for an age and what the visitor is looking for. Lander Data shows that visitors aged 65+ convert at 80% while visitors aged 50-59 convert at 50%. The same answers can pick a different offer for each group (see [Offers by Lander Data](/docs/tracker/offers-by-lander-data/index.md)) or tell your offer source which group a visitor belongs to.

---

## Create a data set

A data set lists the questions your lander asks and the answers you want to keep. Open **Tracker → Lander Data** and click **New data set**.

![The Lander Data page with one data set, Dating quiz, used by three landers, with 10 visits, 10 visits with data, 8 clicks, 5 conversions, a CR of 62.5 percent and 19 dollars of revenue](/images/docs/lander-data-list.jpg "Your data sets, with their results for the chosen dates")

Give the data set a name, then add a **field** for each question. Each field has:

- **A label**, such as Age.
- **A type.** **One answer** keeps a single choice, like an age range. **Several answers** keeps every choice a visitor ticks, like their interests. **Free text** keeps what the visitor types, up to 100 characters. Free text shows in reports, but it can't be used in outcomes or tokens.
- **Values**, for One answer and Several answers: the answers you want to keep, such as 50-59, 60-64 and 65+. Answers that aren't listed aren't kept.

![The Setup tab of the Dating quiz data set with two fields: Age, One answer, with the values 50-59, 60-64 and 65+, and the key age; Goal, One answer, with the values Serious and Casual, and the key goal](/images/docs/lander-data-fields.jpg "A data set with two questions")

Every field has a **key**, shown next to it, such as `age`. Every value has one too, such as `65plus` for 65+: hover over the value to see it. Your lander uses the keys, not the labels, so you can rename a label later without changing the lander. A field's key follows its label until you edit it, and stays fixed once you save the data set, because recorded answers use it.

A data set holds up to 20 fields, each with up to 50 values.

---

## Group answers into outcomes

An **outcome** is a group of visitors you want to treat the same way, such as everyone aged 60 or over. Outcomes are optional. Add them in the **Outcomes** card of the data set.

![The Outcomes card with two outcomes: 60+, when Age is one of 60-64 or 65+, with the outcome value -60plus; and Premium, when Goal is Serious, with no outcome value](/images/docs/lander-data-outcomes.jpg "Two outcomes. A visitor gets the first one they match.")

Each outcome has:

- **A name**, such as 60+.
- **Conditions.** Pick a field and the answers that match it, such as Age is one of 60-64 or 65+. Click **and** to require a second field too. A condition on a Several answers field matches when the visitor picked any of its answers.
- **An outcome value**, optional. This is the text the `{outcome}` token becomes for this outcome. See [Send the outcome to your offer](#send-the-outcome-to-your-offer).

Order matters. Each visitor gets the first outcome they match, from the top, so put the most specific outcome first. Use the arrows to move an outcome up or down. A visitor who matches no outcome has none, and keeps the path's offer.

---

## Connect your lander

Open the lander in **Tracker → Landers**, click **More**, and choose the data set under **Lander Data**. Answers are only kept for landers that use a data set. Several landers can use the same data set, which lets you compare them.

---

## Record answers on your lander

Your lander needs the Proferex tracking script. Published Pages, Blog landers and Internal landers load it already. On an External Hosted lander, add it to the page, using your own tracking domain:

```html
<script defer src="https://track.mydomain.com/proferex/tracker.js"></script>
```

Then mark each question with the field and value keys from your data set. Use whichever fits each question.

**Buttons that move the visitor on.** Tapping the button is the answer:

```html
<button data-pfx-field="goal" data-pfx-value="serious">Serious</button>
<button data-pfx-field="goal" data-pfx-value="casual">Casual</button>
```

**Radio buttons, checkboxes and dropdowns.** Put `data-pfx-field` on each one and use the value key as its value. The script reads what is selected, so changing or unticking an answer is recorded too:

```html
<label><input type="radio" name="age" data-pfx-field="age" value="50_59"> 50-59</label>
<label><input type="radio" name="age" data-pfx-field="age" value="60_64"> 60-64</label>
<label><input type="radio" name="age" data-pfx-field="age" value="65plus"> 65+</label>
```

**Custom tiles and anything else.** Call `proferex.set` with the whole answer every time it changes. Use a list for a Several answers field, and `null` to clear an answer:

```html
<script>
  proferex.set('age', '65plus');
  proferex.set('interests', ['travel', 'fitness']);
  proferex.set('age', null);
</script>
```

Keep your offer links as they are, using your full Offer Link (see [Offer Redirect](/docs/tracker/offer-redirect/index.md)). The script adds the visitor's current answers to every offer link, and those answers decide the outcome when the visitor clicks. If your quiz sends the visitor on in code instead of with a link, build the address with `proferex.outgoingUrl`:

```html
<script>
  window.location.href = proferex.outgoingUrl('https://track.mydomain.com/outgoing');
</script>
```

The **On your lander** tab of each data set shows these snippets with its own keys.

The script saves the answers when the visitor leaves the page, including visitors who close the tab or go back without clicking through. That is how you see where a quiz loses people. Answers are recorded for 24 hours after the visit.

---

## Read the results

Open the data set and go to its **Analytics** tab. It covers visits to the data set's landers in the dates you choose, with each visit's latest answers.

![The Analytics tab of the Dating quiz data set: the 60+ outcome with 7 visits, 5 clicks, 4 conversions and 16 dollars of revenue; No matching outcome with 3 visits and 1 conversion; and the Age question, answered by 9 of 10 visits, with 65+ converting at 80 percent and 50-59 at 50 percent](/images/docs/lander-data-report.jpg "Results by outcome and by answer")

- **Outcomes** shows visits, clicks, conversions, revenue, CR and EPC for each outcome. **No matching outcome** is visitors who answered but matched no outcome. **Didn't answer** is visitors who answered nothing.
- Each **question** shows how many visits answered it, then the same numbers for each answer. On a Several answers question, a visitor counts once for each answer they picked, so those rows can add up to more than the total.
- **Filter by Lander** compares the landers that share the data set.

Lander Data also works across your other reports. On the **Analytics** page, group or filter by **Outcome**, **Lander Data set**, or any question (shown as **Lander Data: Age**, for example), together with any other grouping. Campaigns, landers, offers, combinations, traffic sources and offer sources can be grouped by Outcome on their own Analytics tabs.

---

## Send the outcome to your offer

The `{outcome}` token puts the visitor's outcome into a [custom token](/docs/tracker/custom-tokens/index.md), so your offer source can see which group converts. Use it in a custom token template on your campaign or traffic source:

![The Edit Custom Token Definition form for Token 2 with the template campid_short followed by outcome, and the Lander Data box showing that the lander gets campid_short and the offer gets campid_short-60plus](/images/docs/lander-data-outcome-token.jpg "A custom token that adds the outcome at click-out")

`{outcome}` is filled in when the visitor clicks through to the offer, after they answered. It becomes the outcome's value, so with the template `{campid_short}{outcome}`:

| Visitor | Custom token |
|---|---|
| Matched 60+, whose value is `-60plus` | `ab12-60plus` |
| Matched an outcome with no value | `ab12` |
| Matched no outcome | `ab12` |

Put any separator, such as the dash in `-60plus`, in the outcome's value, not in the template, so visitors without an outcome don't get a stray dash. The lander itself sees the token without the outcome, because the visitor hasn't answered yet. [Value transformations](/docs/tracker/custom-tokens/index.md#value-transformations) apply to the finished value.

Your offer link and postbacks use the custom token as usual, for example `{custom_token2}`. Visitors' own answers never go into tokens or offer links: only the outcome value you chose.

To send visitors in each outcome to a different offer, set up [Offers by Lander Data](/docs/tracker/offers-by-lander-data/index.md).
