Skip to main content

Event

An event is a custom piece of information about something your Contact does. You can create an Event for virtually any action the Contact can do. Have in mind this means that there are no pre-configured events in the User.com app - you have to create them yourself.

info

Read more about Events and their capabilities in User.com Docs.


Sending an Event​

Event will always be sent to a currently tracked Contact. To send an Event use sendCustomEvent() method. Pass the Event Name and Event Attributes as Map <String, dynamic>.

UserComSDK.instance.sendCustomEvent(
eventName: 'Example Name',
data: <String, dynamic>{
'Example Attr 1': 'Footer',
'Example Attr 2': True
},
);
ArgumentRequiredDescription
eventNameYesYour own name for an Event
dataNoKey-value map containing Event Attributes

To verify that an Event is correctly sent, check Contact timeline in User.com Panel. User.com Event