Skip to content

Button

The Button is how a visitor moves through your campaign and how most conversions are counted. One button does one thing when pressed: it submits the step and moves on, opens a link, expands or minimizes the campaign, or closes it. It can also copy a discount code to the clipboard, mark the press as a primary or secondary goal in your analytics, and run your own JavaScript before anything else happens.

The settings below are listed in the order they appear in the panel. Some only appear for certain actions.

The name of the button in the builder’s component list. It is only for you and is never shown to visitors.

The wording on the button, such as “Get my 10% off”. It can be translated per language (see Campaign Localization) and can show values from the DataHub.

What happens when the visitor presses the button.

  • Open Link: takes the visitor to the address in Link URL.
  • Submit and Go to Next Step: checks the fields on the step, collects the answers and moves to the step chosen in Target Step.
  • Expand or Minimize Campaign: switches between the teaser and the full campaign (see Campaign States).
  • Close Campaign: closes the campaign.
Section titled “Link URL, Open link in a new window, Add UTM Parameters”

These appear when Action is Open Link.

  • Link URL: the full address, starting with https://. It can be translated per language, so each market can go to its own page.

  • Open link in a new window: opens the page in a new browser tab and leaves your website open in the current one. Unticked, the visitor leaves the current page.

  • Add UTM Parameters: ticked by default. Adds these to the address so the visit shows up in your web analytics:

    • utm_source=fluentos
    • utm_medium=popup, or utm_medium=embedded for an embedded campaign
    • utm_campaign= the campaign name
    • utm_content=cta
    • utm_term= the button’s Text in your default language

    When your Link URL already has a UTM parameter of its own, none of these are added, so the visit is reported with your tags only, exactly as you wrote them.

This appears when Action is Submit and Go to Next Step. It is the step the visitor sees after a successful submit.

  • Next Step (the default): the step that follows this one in your step list. If this is the last step, the campaign is finished (see How it behaves on the website).
  • Any other step by name: jumps straight there, for example to skip a question or to loop back to the start.

The list only shows steps of the expanded campaign, never the current step. Target Step is hidden when:

  • you are on the mobile tab (it is set once on desktop for every device),
  • the step contains a Spin the Wheel, because the wheel decides where the visitor goes (see Spin the Wheel),
  • you are editing the button in the Component Library.

This appears when Action is Submit and Go to Next Step. When the visitor presses this button, the value you type here (for example yes, no or option_a) is sent with the other answers, and the button appears under its Name in Campaign Integrations like a field. Use it when the button itself is the answer, such as two buttons “Yes, I want news” and “No thanks” on the same step. Leave it empty and the button adds nothing to the answers. Like Target Step, it is hidden on the mobile tab and on a step with a Spin the Wheel.

A second thing the button does on top of its Action.

  • None: nothing extra.
  • Copy Dual Value to Clipboard: copies the text in Dual Value to the visitor’s clipboard when the button is pressed, for example a discount code that the visitor can paste at checkout. Dual Value can be translated per language.

In the Goal Tracking (Analytics) section, shown when Action is Open Link or Submit and Go to Next Step.

  • None: the press is counted as a normal click or event.
  • Primary Goal: the press also counts as a primary goal completion.
  • Secondary Goal: the press also counts as a secondary goal completion.

Goal completions appear in Goal Completions by Medium and in Campaign Analytics. Use Primary Goal for the action the campaign exists for (the signup, the claimed offer) and Secondary Goal for a useful but lesser action (a “See all products” link). Like clicks and events, a goal is counted once per step per visit.

Also in Goal Tracking (Analytics). It decides how a press is reported in Campaign Analytics.

  • Default: Open Link reports a click (counts towards the clickthrough rate), Submit and Go to Next Step reports an event (counts towards the conversion rate).
  • Track as Click: the press is reported as a click, whatever the action.
  • Track as Event: the press is reported as an event, whatever the action. Use it when a link click is your conversion.
  • Disable Event Tracking: the press is not reported at all and no goal is counted. Answers are still collected and sent to your integrations.

A press reported as a click runs the campaign’s On Click script, a press reported as an event runs On Event, and Disable Event Tracking runs neither (see JavaScript Callbacks).

Your own JavaScript, run in the visitor’s browser when the button is pressed, before the action. Tick Enable custom script to show the settings.

  • Script (JavaScript): the code to run. It can wait for a reply from your own systems, for example to check a code or register the visitor elsewhere. You can use {{locale}} for the visitor’s language, {{country}} for their country, {{dataHub:KEY}} for a DataHub value, and {{id}} for what the visitor typed or ticked in a field on the same step, where id is the short code next to the copy icon at the top of that field’s settings panel, for example {{df05-ab04-0ca2-31d3}}. A field placeholder with nothing typed becomes an empty text. On a submit button the fields are checked before the script runs, so the values are valid by then; on an Open Link button they are taken as typed.
  • What your script returns decides what happens next:
    • Nothing (or an empty text): the action goes ahead as normal.
    • A text, for example return 'This code has already been used': the action is stopped and the text is shown on the button as an error message. The button stays disabled for the Retry delay after error (seconds) and can then be pressed again.
    • false: the action is stopped silently and the button can be pressed again straight away.
    • Any other value stops the action. One that counts as false in JavaScript (null, 0, NaN) stops it silently, like false. Anything else is turned into text and shown as the error, so true shows “true” and an object shows “[object Object]”. A value that turns into an empty text, such as [], lets the action go ahead like nothing.
    • An error your script does not catch: it is written only to the visitor’s browser console, and the action goes ahead as if the script returned nothing. await every call your answer depends on, and catch your own errors to return a message, for example try { await checkCode() } catch (error) { return 'Please try again' }.
  • Retry delay after error (seconds): how long the error message stays and the button stays disabled, from 2 to 10 seconds. The default is 3 seconds. Test error + retry delay shows it in the preview.
  • Show loading overlay: covers the campaign with a spinner while the script runs, useful when it waits for a reply. Overlay spinner color sets the spinner colour and Test loading overlay shows it in the preview.

For scripts that run when the campaign is shown, engaged or closed, rather than when one button is pressed, see JavaScript Callbacks.

Dimensions, Background Properties, Border Properties, Typography Properties

Section titled “Dimensions, Background Properties, Border Properties, Typography Properties”

These control how the button looks.

  • Dimensions: Width, Inner Space and Outer Space. Inside an Inline Group, the full width option reads Fit to Content.
  • Background Properties: a background Image (it can be translated per language), how it is fitted (Image Fit: Fit and Keep Aspect Ratio, Zoom in to Fill the Space or Customize), Repeat, Position, and a Background Color shown behind or instead of the image.
  • Border Properties: border width, style, colour and rounded corners.
  • Typography Properties: Text Color and font.

Tick Enable Effect to draw the eye to the button with a Shake or Pulse animation. Initial Delay, Repeat Count, Duration and Color fine tune it.

When a visitor presses the button, things happen in this order:

  1. Custom script, if enabled. On a submit button the fields on the step are checked first, and the script does not run while any of them fails. The button is disabled while the script runs.
  2. Dual Action: the Dual Value is copied to the clipboard.
  3. Action, as described below.

Open Link. The press is reported (a click by default) and the visitor goes to the link. The campaign then closes and counts as closed, so it does not show again unless Allow reopen after close/submit is set up. To keep it on screen instead, set After Open Link or Final Submit to Go to Step in Campaign Advanced Settings.

Submit and Go to Next Step. Every field on the step is checked first (see Input for what is checked). If any fails, the step stays and the errors are shown. Otherwise the answers on the step, plus the button’s Answer Value, are collected, the press is reported (an event by default) and the Target Step opens. When there is no step to go to, because this is the last step and Target Step is Next Step, this is the final submit: the campaign closes, or goes to the step chosen under After Open Link or Final Submit in Campaign Advanced Settings.

Answers from all submitted steps are sent together to your integrations once the visitor submits the last step that collects anything, or earlier if the campaign is closed or minimized.

Expand or Minimize Campaign. The campaign switches to the other state and opens on its first step. Minimizing also sends the answers collected so far.

Close Campaign. The campaign closes and counts as closed. It always closes, whatever After Open Link or Final Submit is set to. Answers collected on earlier steps are sent.

Buttons inside an Inline Group behave exactly the same. The group only changes where the button sits, not what it does.

  • The custom script runs for every action, including Close Campaign and Expand or Minimize Campaign.
  • Some browsers refuse clipboard access, so also show the code on the next step rather than relying on the copy alone.
  • A submit button on a step with a Spin the Wheel starts the wheel instead of moving on, and the wheel’s result decides the next step.
  • A button with an Answer Value is sent to an integration only when you give it an Integration Field. Leave it unmapped and the value is kept for the campaign alone, for example to drive a later step, without reaching your CRM. With two buttons on one step, map both to the same field: only the pressed one sends its value.

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

  • Can be set per device: Text, Custom script (on click), the background Image, and the look of the button (Dimensions, Background Properties, Border Properties, Typography Properties and Engage Effects).
  • Shared by every device, set on desktop: Action, Link URL with its new window and UTM options, Target Step, Answer Value, Dual Action, Dual Value, Goal Type and Event Type. These are hidden on the mobile tab.

To place the button in a step, see Campaign Step. To put buttons side by side, see Inline Group.