-
-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
Custom Event Tracking
You can use the Tracker to track custom event types that you define. Custom events should only be used when you need to track complex events and control the processing of that event on the server. If you only need ot track simple "actions" then use the Action Tracking methods instead.
The following code illustrates how to create a custom event, set an event type that your server will listen for, set an event property (name/value pair), and log it:
var myEvent = OWATracker.makeEvent();
myEvent.setEventType("someeventname");
myEvent.set("somename", "somevalue");
OWATracker.trackEvent(myEvent)This event will be sent to the server for processing. You can create an Event Handler to listen for this event and an entity if you want to log it to a new database table.