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

@ -655,9 +655,9 @@ angular.module('copayApp.controllers').controller('confirmController', function(
soundService.play('misc/payment_sent.mp3');
}
var channel = "firebase";
if (platformInfo.isNW) {
channel = "ga";
var channel = "ga";
if (platformInfo.isCordova) {
channel = "firebase";
}
var log = new window.BitAnalytics.LogEvent("transfer_success", [{
"coin": $scope.wallet.coin,