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, give it its own spacing, background and border, 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 just 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.
  • Localize: appears when you have picked a language other than the default in Current Locale. Turn it on to write a separate version of the text for that language. While it is off, the language shows the default text and the editor is locked. See Campaign Localization.
  • Editor toolbar:
    • Bold, italic, underline and strikethrough.
    • Left, centre, right and justified alignment.
    • Link: select the words, click the link icon, enter the URL, tick Open link in a 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 Unlink.
    • The menu at the end of the toolbar holds Line Height and undo and redo.
  • Font, Size and colour: apply to the selected words, so one Text component can mix fonts, sizes and colours. 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 colour behind the text block. Leave it empty to let the step background show through.
  • Border Corner Radius, Border Width and Border Color: a border around the text block. The colour 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 locales 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 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 at the moment the step opens. When the visitor has no value for that key, nothing is shown in its place, so 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 link in a new window was ticked.

  • Font, size and colour set in the editor win over the step’s Default Typography Properties. Text you have not styled follows the step.
  • Turning Localize on starts that language from a copy of the text it was showing (the parent language or the default), ready for you to translate. Turning it off 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 form, move to another step and be tracked 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 Properties and Border Properties). 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.