BitAnalytics 0.2.1 with GA

This commit is contained in:
Jean-Baptiste Dominguez 2018-07-25 16:17:42 +09:00
commit bba85794ac
10 changed files with 245 additions and 66 deletions

View file

@ -427,9 +427,9 @@ angular.module('copayApp.services')
}, function(err, secret) {
if (err) return bwcError.cb(err, gettextCatalog.getString('Error creating wallet'), cb);
var channel = "firebase";
if (platformInfo.isNW) {
channel = "ga";
var channel = "ga";
if (platformInfo.isCordova) {
channel = "firebase";
}
var log = new window.BitAnalytics.LogEvent("wallet_created", [{
"coin": opts.coin