Skip to content

Text

The Text component holds the words in a step: a headline, an offer, the small print or a link to your terms. You write and style it in a rich text editor and can translate it for every language your website runs in. It can also show live values from the DataHub, for example the prize a visitor has won or how much more they need to spend for free shipping.

  • Name: the name of the component in the builder’s component list. It is only for you and is never shown to the visitor.
  • Translate button: the last button of the editor toolbar, shown when you have picked a language other than the default in Language. Click it to write a separate version of the text for that language. While the button is outlined, that language shows the default text and the editor is locked. See Campaign Localization.
  • Editor toolbar:
    • Bold, italic, underline and strikethrough.
    • Left, center, right and justified alignment.
    • Link: select the words, click the link icon, enter the URL, tick Open in New Window if you want the page to open in a new tab, then click Insert Link. To change or remove a link, select it and click the link icon again, then Change Link or Remove Link.
    • The menu at the end of the toolbar holds Line Height and undo and redo.
  • Font, Size and color: apply to the selected words, so one Text component can mix fonts, sizes and colors. Font lists the fonts set up for your website.
  • Darken Editor Background: darkens the editor while you type, so white or very light text is readable in the panel. It changes nothing on your website.
  • Inner Space: the space between the edge of the component and the text, on each of the four sides.
  • Outer Space: the space between the component and whatever sits around it in the step.
  • Background Color: a color behind the text block. Leave it empty to let the step background show through.
  • Corner Radius, Border Width and Border Color: a border around the text block. The color only shows when the width is above zero.

Language. The visitor sees the version written for their language. If there is none, the campaign falls back the same way as everywhere else: from en-dk to en, then to the default text. See how languages work.

Live values from the DataHub. Anywhere in the text you can write a DataHub placeholder, for example:

Terminal window
{{datahub:WINNER_HEADLINE:You won 20%}}

The part after the second colon is what you see in the dashboard preview. On your website, the placeholder is replaced with the value that your website, or a game in the campaign, has pushed for that visitor. Arithmetic works too, for example {{datahub:(100 - "basketvalue"):20}}. The full syntax is on the DataHub page, and the values the games push are listed under Live Data on the Spin the Wheel, Scratch the Card and Pick a Box pages.

Placeholders are filled in when the step opens, and again when a new value is pushed while the step is open. When the visitor has no value for that key, nothing is shown in its place. Write the sentence so it still reads well without it.

Links. A link in the text opens in the same tab, or in a new tab when Open in New Window was ticked.

  • Font, size and color set in the editor win over the step’s Default Typography. Text you have not styled follows the step.
  • Clicking the translate button starts that language from a copy of the text it was showing (the parent language or the default), ready for you to translate. Clicking it again drops the translation and the language goes back to the default text.
  • To make a whole block clickable, such as a call to action, use a Button rather than a linked sentence. A button can submit the step, move to another step and count as a goal.

On the mobile tab, tick Override Desktop Properties to change the component for mobile visitors (see Campaign Device Customization).

  • Can be set per device: the text itself, in every language, and its look (Dimensions, Background and Border). A shorter headline for small screens is a common use.
  • Desktop only: Name.

Without the override, mobile visitors see the desktop text and styling. With it, they see the mobile version, and a later change on desktop no longer reaches mobile, so finish the desktop text and its translations first.