The connectif.managed.getAllEventsAsync function

The function "connectif.managed.getAllEventsAsync" is used to retrieve the list of events generated by the contact at the time it is obtained.

  

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

 

How to use it

The "connectif.managed.getAllEventsAsync" listing is obtained using the tags found on the current page. In addition, events are generated automatically, such as page visits.

The function returns a promise with the array of events that can be used as the input parameter of the connectif.managed.sendEvents function.

 

Example

Once the feature is included, it will look like this:

connectif.managed.getAllEventsAsync().then(function onAllEvents(events){
    connectif.managed.sendEvents(events);
});

 

 

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:

Was this article helpful?
0 out of 0 found this helpful