If you already have a non-BlueConic form on your website and want to set consents or refusals for objectives depending on the answers visitors gave, use the Privacy: Consents and Refusals listener.
Adding a new Privacy: Consents and Refusals listener
- Click Listeners in the navigation bar.
- Click Add Listener.
- A pop-up window appears. Check the Show all box. Enter "privacy" in the search bar. Click Privacy: Consents and Refusals listener.
- The listener page opens. You can expand or collapse metadata fields (favorite, labels, and description) by clicking the gray + or –.
Configuring the Listener
Next, you need to configure rules for the listener. Below is an example of what a configuration could look like:
The example shows a number of typical use cases that you can implement with the listener:
- Checkbox is checked / unchecked – Rule 1 and 2 of the example show the configuration for My Checkbox A. The objective is consented if the checkbox is checked; the objective is refused if the checkbox is not checked. This will only be registered when the surrounding form is submitted.
- Button is clicked – With rule 3 of the example the visitor will consent to the objective after clicking My Button B. Clicking that button also has to trigger the submitting of the surrounding form.
- Input field is filled – With rule 4 of the example the consent for an objective is set if the visitor has entered any value into My Input Field C and its wrapping form is submitted.
- Radiogroup / dropdown has a specific value – Rule 5 and 6 of the example both handle Radiogroup / Dropdown D. You can check for any value that a radiogroup / dropdown returns and set the consent / refusal for the objective. In this example the consent is set for the value “YES” and a refusal is set for the value “NO”.
- Hyperlink is clicked – Rule 7 of the example will set the consent for My Objective if the visitor clicks My Hyperlink E. Note that you have to enter the selector of the hyperlink twice, as the hyperlink will not be part of submitting a form.
This is an example of how to retrieve consent when serving international customers from the U.S. and EU.