smartanalytics/dist/smartanalytics.classes.analyticsaccount.js

14 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2017-02-24 02:00:15 +00:00
"use strict";
2017-04-17 15:20:56 +00:00
Object.defineProperty(exports, "__esModule", { value: true });
2017-02-24 02:00:15 +00:00
const send = require("./smartanalytics.send");
class AnalyticsAccount {
constructor(appNameArg, trackingIdArg) {
this.appName = appNameArg;
this.trackingId = trackingIdArg;
}
sendEvent(eventCategoryArg, eventActionArg, eventLabelArg) {
send.event(this.trackingId, this.appName, eventCategoryArg, eventActionArg, eventLabelArg);
}
}
exports.AnalyticsAccount = AnalyticsAccount;
2017-04-17 15:20:56 +00:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRhbmFseXRpY3MuY2xhc3Nlcy5hbmFseXRpY3NhY2NvdW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRhbmFseXRpY3MuY2xhc3Nlcy5hbmFseXRpY3NhY2NvdW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsOENBQTZDO0FBRTdDO0lBR0UsWUFBWSxVQUFrQixFQUFFLGFBQXFCO1FBQ25ELElBQUksQ0FBQyxPQUFPLEdBQUcsVUFBVSxDQUFBO1FBQ3pCLElBQUksQ0FBQyxVQUFVLEdBQUcsYUFBYSxDQUFBO0lBQ2pDLENBQUM7SUFFRCxTQUFTLENBQUUsZ0JBQWdCLEVBQUUsY0FBYyxFQUFFLGFBQXFCO1FBQ2hFLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLGNBQWMsRUFBRSxhQUFhLENBQUMsQ0FBQTtJQUM1RixDQUFDO0NBQ0Y7QUFYRCw0Q0FXQyJ9