From 49fe24dee2dc043a67456f1f734f2548a8f26281 Mon Sep 17 00:00:00 2001 From: Ibby Date: Sun, 1 Jan 2017 06:30:33 -0500 Subject: [PATCH] fix(google-analytics): fix startTrackerWithId when interval is not provided --- src/plugins/googleanalytics.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/googleanalytics.ts b/src/plugins/googleanalytics.ts index a5f0f0918f..12d2193841 100644 --- a/src/plugins/googleanalytics.ts +++ b/src/plugins/googleanalytics.ts @@ -41,7 +41,10 @@ export class GoogleAnalytics { * @param {number} interval Optional dispatch period in seconds. Defaults to 30. * @returns {Promise} */ - @Cordova() + @Cordova({ + successIndex: 2, + errorIndex: 3 + }) static startTrackerWithId(id: string, interval?: number): Promise { return; } /**