The function "connectif.managed.getAllEventsAsync" is used to retrieve the list of events generated by the contact at the time it is obtained.
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); });
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 site.
- 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.