Merge pull request #231 from Bitcoin-com/wallet/task/505

505 - BitAnalytics 0.2.1 with GA
This commit is contained in:
Jean-Baptiste Dominguez 2018-08-08 10:53:01 +09:00 committed by GitHub
commit 75843c68ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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