瀏覽代碼

Log subscription errors.

Paulo Reis 10 年之前
父節點
當前提交
362d75ef81
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      services/web/public/coffee/main/new-subscription.coffee

+ 1 - 0
services/web/public/coffee/main/new-subscription.coffee

@@ -121,6 +121,7 @@ define [
 		completeSubscription = (err, recurly_token_id) ->
 			$scope.validation.errorFields = {}
 			if err?
+				event_tracking.sendMB "subscription-error", err
 				# We may or may not be in a digest loop here depending on
 				# whether recurly could do validation locally, so do it async
 				$scope.$evalAsync () ->