# Show a result with a chart and redirect visitors at the end of your story

Source: https://knowledge.intractive.app/en/articles/flow-and-logic

The **Chart** block shows each visitor a visual result based on their own answers. The **Redirect** block sends visitors to a website or another story, shows a QR code, or lets visitors start the story over.

Use them to end a quiz with a personal result, or to send visitors to their next step once they're done. They belong to the flow and logic content blocks, together with **Branch Choice**, **Hotspot Branch**, **VR Branch** and **Logic Branch**. Branches are explained in the topics on how branches work and on creating branches.

## Chart

A chart collects the results of your story and shows them visually. The results come from variables, so the chart shows what the visitor's own answers added up to.

Say you build a quiz about vacancies. Every answer adds points to a vacancy. At the end, the chart shows the 3 vacancies that fit the visitor best. Every item in the chart can lead to its own branch with specific content, so the visitor can open the vacancy they're interested in from there.

The chart only shows each visitor's own **Number** variables. It can't show the combined responses of all visitors to a **Poll** or **Multiple Choice** block.

### Build the questions first

A chart needs something to show, so add the questions before the chart.

1. Add content blocks that can set a variable, such as **Multiple Choice**, **True or False**, **Poll**, **Swipe Cards** or **This or That**.
2. In the logic of each block, connect every answer to a variable and give it a value.\
   On a **Multiple Choice** block, select **Set variables** below the **Answers** list (**Logic** in the classic editor). Then, for each answer, pick a number variable, select **Add** and enter the points.\
   \[screenshot: the Set variables window of a Multiple Choice block with points per answer\]

### Set up the chart

1. Add a **Chart** block after the questions.
2. Write the text above the chart in **Text**.
3. Optional: use a variable in that text, such as `{{@matching_score}}`, so the visitor sees their own score in a sentence. Write it without spaces inside the braces. Showing a variable in a text is covered in the topic on personalised tokens.
4. Add the variables you want to show under **Variables**.
5. For each variable, fill in its settings:
   - **Label:** the name the visitor sees in the chart.
   - **Text (if highest):** a text with extra explanation, such as what the result means or a tip for a next step.
   - **Action on click:** what happens when the visitor selects this variable.
     - **Start branch:** the visitor goes to the **Branch** you choose when they select the variable. Every result can have its own content, such as one vacancy or one study programme.
     - **Do Nothing:** the bar can't be selected. The visitor sees the chart and the **Text (if highest)** of the highest variable, then continues.
6. Set the **Target value**. This is the value that counts as a full score. There is one target value per chart. With a target value of 100, a variable with value 50 is shown as 50%, half a bar.

Previewing only the chart block skips the blocks before it, so the variables those blocks set are empty there. Preview the whole story to see the chart filled in.

\[screenshot: a chart in the preview of the whole story, showing a visitor's top 3 results\]

### Keep a long chart readable

With many variables, a long chart gets hard to read on a phone. Use the **Show items** setting of the block to show only the results that matter:

- **Only show first few options:** shows only the top results, for example the best 5 (**Number of items shown**, 5 by default).
- **Hide items below score:** hides results that score under the **Minimum score**.
- **Show all items:** always shows all results.

With the first two, the **Show "Show more" button** option adds a button that lets the visitor show all results.

> **Tip:** Show the top 3 and send each result to its own branch, so every visitor continues with content that fits them.

![](https://storage.googleapis.com/intractive-knowledge-media/79734f51fc17036dfb94d42e3a4f2d882bf159ebe1b48626857485c41fc2827a.png)

## Redirect

A redirect sends the visitor somewhere else. Use it at the end of a story, or as a side path inside a story.

- **URL:** the visitor goes to a website, such as your career site, a partner page, a booking form or an application page in your ATS.
- **Story:** the visitor goes to another story.
- **QR code:** the block shows a QR code. The visitor scans it and opens the website on another device. The story doesn't navigate away. Set its **URL** and **Label**.

With exactly one **URL** or **Story** option, the visitor is forwarded automatically about a second after reaching the block. With several options or a single **QR code**, the visitor taps or scans. When you turn on **Story ends here**, the block shows a **Start over** button, so visitors can start the story again from the beginning.

### Redirect to a website

1. Add a **Redirect** block.
2. Select **URL**.
3. Paste the link.
4. Set **Action** to **Same tab** or **New tab**. Without a choice, the website opens in the same tab.\
   \[screenshot: a Redirect block with URL selected and the Action option visible\]
5. Change **Title** to edit the button text of the option.

Intractive adds UTM parameters to the link automatically. If the visitor arrived without UTM parameters, the analytics tool of the website, such as Google Analytics, shows which story sent them. If they arrived with their own UTM parameters, Intractive passes those on instead. If you add UTM parameters to the link yourself, Intractive keeps your values. You can turn this off per story with **Disable automatic UTM tracking** (admin only) in the story settings. The change takes effect after you publish the story again.

The project's **Insights** page lists every website visitors went to under **Top outbound**, with the number of clicks.

### Redirect to another story

1. Add a **Redirect** block.
2. Select **Story**.
3. Select **Connect story**.
4. Select the story you want to send visitors to in the **Select a story to link to** list.\
   \[screenshot: the list of stories in the project after selecting Connect story\]

> **Note:** You can only connect stories that are published. A story that's still a draft is shown greyed out and can't be chosen. A story can't link to itself. Publishing is covered in the topic on publishing your story.

### Add text to the block

Edit **Header label** and **Header title** to add text above the **Redirect** block. For example, use 'Ready for the next step?' as the header label and 'Apply now' as the header title.

![](https://storage.googleapis.com/intractive-knowledge-media/88b8665be5664a705ad38400a1ec47f0c32edbe346c18aa3a94d6323ca24b804.png)
