Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
feat(API): increment event stat
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Feb 13, 2018
1 parent 620fcef commit 578e1b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 578e1b3

Please sign in to comment.