Call to Action
Introduction
Section titled “Introduction”A Call to Action element shows a message with a button that opens a URL. Use it to ask happy users for a review, send them to a page in your app, offer a promotion, or invite them to book a demo.

The top of the element holds a headline, body text, and an optional banner image or video. Below it are two buttons:
- The call-to-action button opens the target URL and stores
true. - The dismiss button is optional and only shown when you give it a label. It continues the survey without opening the link and stores
false.
To open a page without showing a message first, use Redirect to Website instead.
Target URL
Section titled “Target URL”Use a full https:// URL. In in-app surveys, a path starting with /, such as /settings/billing, also works and opens on the site showing the survey. On a Survey Page, always use a full URL.
Only http and https links open. Custom schemes such as myapp://settings don’t. To open a screen in your mobile app, use an https:// Universal Link on iOS or App Link on Android.
The URL supports Liquid Tags, so you can pass user data to the target page:
https://www.example.com/review?user_id={{ contact.id }}New tab or same tab
Section titled “New tab or same tab”Choose whether the link opens in a new tab or in the same tab.

With a new tab, the survey continues with the next element. Browsers can block a new tab opened for a / path, so use a full URL when the page must open.
With the same tab, the browser leaves the current page, so make the Call to Action the last element of your survey.
Mobile SDK surveys always use the new tab setting. The editor preview doesn’t open / paths or same-tab links, so publish the survey to test them.
Responses
Section titled “Responses”Clicks are stored under the element’s data identifier: true for the call-to-action button and false for the dismiss button. Closing the survey with the X stores nothing. You can filter response lists and dashboards by either value, and chart the clicks with a Bar Chart or Pie Chart.
The JavaScript SDK onComplete callback includes the value once the response is submitted.
