Skip to main content

Associate events and actions with your widget

You can associate events and actions with your widget in the Events section.

For example, you can create two pop-ins, one corresponding to a subscription phase and another corresponding to a subscription validation phase. Create a Request > Success event and associate it with a visitor providing their email address.

Associate the display of the second pop-in and it

Link the display of the second pop-in to the submission of the email address, so it appears after the email is sent.

Events

Click + Add event to associate a new event.

To edit an event, double-click it.

To delete an event, right-click and select Remove event.

Core

Define if the action will trigger before or after the widget appears.

Mouse

Define if the action will trigger when the visitor clicks a specific element. You have to define the elements by selecting them from the list.

Response

Specify whether the action will trigger based on a successful or failed request.

URL

Specify whether the action will trigger when the URL contains a specific value or matches a regular expression.

Form

Specify whether the action will trigger when the form element's value meets the specified condition.

Device

Define if the action will trigger on a specific device.

Countdown

Define if the action will trigger when the countdown expires.

note

Associate a hide element action to make the countdown disappear once it reaches zero. Otherwise, the countdown will be displayed even after reaching 00:00:00.

Translation

Specify whether the action should set a specific language for the text displayed.

Timer

Define the duration for which a widget or an element appears.

Actions

Click Add action inside an event to associate it with a new event.

To edit an action, double-click it.

To delete an action, right click and select Remove action.

Elements

Show or hide an element.

Kameleoon

  • Goal > Process conversion: This method lets you trigger a conversion. You have to specify the goal ID.
  • Goal > Cancel conversion: This method lets you cancel a conversion that was previously triggered during the same visit. It cannot cancel conversions registered in previous visits. You have to specify the goal ID.
  • Data > Set custom data: This method lets you set a custom data value. You have to specify the custom data's name and value.
  • Event > Trigger event: This method lets you trigger a custom event. Custom events are used in targeting segments.

Request

URL (Redirection URL)

  • Go to URL: This method lets you open the specified URL. You have to define the URL and indicate if it opens in a new tab.

JavaScript

  • JavaScript code to run: This method lets you execute custom JavaScript when a visitor exposed to the widget triggers the associated event. With this action, you can, for example, send data to an external tool. A code syntax checking tool is integrated in our Widget Studio.

Form

Disable or enable a form's elements.

Language

Set widget's language.