The "Newsletter subscription event notification" is used to indicate that a contact has subscribed to your newsletter. The event notifies you via JavaScript when a contact performs this action and supplies their email address, using the connectif.managed.sendEvents function.
How to use it
The newsletter subscription event notification uses the entityInfooption in the sendEvents method to enrich the information about the sent events.
Subscription email report
This object represents the email with which the contact has subscribed. It includes the following property:
First name | Required | Type | Multiple | Description |
---|---|---|---|---|
Yes | string | No | Email used by the the contact to subscribe. |
Example
The notification will look like this:
connectif.managed.sendEvents([
{type: "newsletter-subscribe", email: "contact@email.com"},
{type: "page-visit"}
], { entityInfo, cart });
Keep learning!
To make the most of your Connectif account, we recommend reading these articles next:
- Add Connectif JavaScript to your website, to insert the code and start collecting information about visits to your page.
- Tag integration, to discover all the notifications you can send from your ecommerce to Connectif and how they work.
- Integration with Connectif via API, to synchronize contacts, products, purchases and vouchers.
- Check the integration with your ecommerce, so you can be confident that your data is syncing correctly with your Connectif account.