From 578e1b30ee7213f26d5b46c802dda1cf573ad255 Mon Sep 17 00:00:00 2001 From: plondon Date: Tue, 13 Feb 2018 10:01:49 -0500 Subject: [PATCH] feat(API): increment event stat --- src/api.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api.js b/src/api.js index a646d9f4d..117c90764 100644 --- a/src/api.js +++ b/src/api.js @@ -295,6 +295,10 @@ API.prototype.recordExperimentResult = function (experiment, ab) { return fetch(`${this.ROOT_URL}event?name=wallet_experiment_${experiment}_${ab}`); }; +API.prototype.incrementEventStat = function (event) { + return fetch(this.ROOT_URL + 'event?name=' + event); +}; + API.prototype.incrementSecPassStats = function (activeBool) { var active = activeBool ? 1 : 0; return fetch(this.ROOT_URL + 'event?name=wallet_login_second_password_' + active);