Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Open Web Analytics (OWA) #15

Open
vpodk opened this issue May 15, 2017 · 0 comments
Open

Add support for Open Web Analytics (OWA) #15

vpodk opened this issue May 15, 2017 · 0 comments
Assignees

Comments

@vpodk
Copy link
Member

vpodk commented May 15, 2017

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.

@vpodk vpodk self-assigned this May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant