Skip to content

Antla Custom Events Documentation

Looking for the Headless SDK or Headless API? Start at Headless SDK and Headless API.

Antla fires custom DOM events whenever users interact with key parts of the try-on experience.

  • Events are dispatched with the prefix: antla_
  • Each event includes rich contextual data about the funnel, user, and product.

Questions? — aaron@antla.io

You can listen for the following events:

Enum KeyEvent Name
MODAL_OPENantla_modal_open
MODAL_CLOSEantla_modal_close
IMAGE_UPLOADED_SUCCESSantla_image_upload_success
IMAGE_UPLOADED_ERRORantla_image_upload_error
IMAGE_GENERATED_SUCCESSantla_image_generated_success
IMAGE_GENERATED_ERRORantla_image_generated_error
TRY_ON_DISCOUNT_SHOWEDantla_try_on_discount_showed
TRY_ON_DISCOUNT_COPIED_CLIPBOARDantla_try_on_discount_copied_clipboard
PRODUCT_ADDED_TO_CARTantla_product_added_to_cart
EMAIL_SENDantla_email_send
EMAIL_SEND_ERRORantla_email_send_error
SOCIAL_SENDantla_social_send
SOCIAL_SEND_ERRORantla_social_send_error
document.addEventListener("antla_modal_open", (event) => {
const data = event.detail;
console.log("Modal opened", data);
});

Head to Event Payload for the full payload shape.