onCampaignEmailActivityUpdated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Note: This method registers a callback function as an event handler. Subscribe your app to the relevant event via the Webhooks page in the Wix Dev Center to enable it. For more information, see Handle Events With Webhooks.

Triggered each time an email campaign has a new recipient activity.

New recipient activity includes when each email in a campaign is DELIVERED, OPENED, or BOUNCED. Also, when a URL inside the email is CLICKED.

The type of activity that triggered the webhook is in actionEvent.body and can be one of:

  • delivery: Email was delivered to recipient.
  • click: Recipient clicked on a URL in an email.
  • open: Recipient opened an email.
  • softBounce: Email soft bounced when sent to a recipient.
  • hardBounce: Email hard bounced when sent to a recipient.
Permissions
Manage Email Marketing
Read Email Marketing
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
handlerfunction

handler(event: CampaignEmailActivityUpdatedEnvelope): void | Promise<void>

Did this help?