From 6eeae3712e96c377116d810604216bc0d56f0773 Mon Sep 17 00:00:00 2001 From: Kulbhushan Kaushik Date: Thu, 17 Nov 2022 09:23:29 -0500 Subject: [PATCH] commit --- src/global-methods.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/global-methods.js b/src/global-methods.js index d7a91893..3f7e75b8 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -25,7 +25,14 @@ export default { headers: headers, }) .then((response) => { - + if (logApiCall) { + analyticsMixIn.methods.pushEventToGA( + GaCategories.API_RESPONSE, + GaActions.RESULT, + `${GaLabels.SUCCESS}_${endpoint}`, + true + ); + } return resolve(response); }, error => {