track event
$ npm install tsukurite/event-tracker.js
via require()
var eventTracker = require('event-tracker');
via <script>
<script src="event-tracker.min.js"></script>
see examples.
element
Element
- element
return
Object
- upper camel caseddata-*
attributes
eventType
String
- event name
selector
String
- selector for target elements
[data]
Function|Object
- tracking data
[callback]
Function
- callback function
The MIT license. Please see LICENSE file.