Skip to content

Add support for Open Web Analytics (OWA) #15

@vpodk

Description

@vpodk

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions