Newsletter subscription event notification

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.

 

This article is part of the guide to creating a custom integration.
If your integration is via a module, this tag will be added to your ecommerce platform automatically.

 

How to use it

The newsletter subscription event notification uses the entityInfooption in the sendEvents method to enrich the information about the sent events.

  

This event represents an alternative to implementing the "Newsletter Subscription" tag en in your store or website’s HTML.

 

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
email 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 });
  

The example also reports the visited page event to include both events with a single call to the Connectif tracking.

 

 

Congratulations!
You’ve reached the end of the tutorial.

  

Do you have questions?
Don’t forget, our Connectif specialists are here to help you. To contact them, just open a Support ticket by clicking the blue “Help” button on your dashboard.


Keep learning!

To make the most of your Connectif account, we recommend reading these articles next:

Cet article vous a-t-il été utile ?
Utilisateurs qui ont trouvé cela utile : 0 sur 0