Code-based triggers

Use code-based triggers to control triggering surveys beyond the default Digital targeting. This is an advanced option because this overrides much of the targeting provided by default. A code-based trigger relies on JavaScript code to let you target surveys using the onsite API. For example, trigger a survey when visitors click specific menu items and buttons. Alternatively, listen for a tag embedded by an application such as Adobe Launch that triggers a survey when a certain threshold is passed. Or trigger a survey when a set of JavaScript conditions are met.

Survey configured to use a code-based trigger.

When you configure a survey to use a code trigger there are no targeting configuration options in the Digital Command Center. A code trigger requires that you design and code the mechanism to trigger the form. The code controls targeting the form, for example determining on which pages of your site the survey should appear or be active. See Using JavaScript to target surveys.