From abd910de678c4388b50bcb8736e55fe4be9027a4 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Wed, 23 Nov 2016 08:34:04 -0500 Subject: [PATCH] feat(google-analytics): new interval period parameter closes #816 --- src/plugins/googleanalytics.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/googleanalytics.ts b/src/plugins/googleanalytics.ts index 8fa185fc80..0bc0821bc0 100644 --- a/src/plugins/googleanalytics.ts +++ b/src/plugins/googleanalytics.ts @@ -24,10 +24,11 @@ export class GoogleAnalytics { * In your 'deviceready' handler, set up your Analytics tracker. * https://developers.google.com/analytics/devguides/collection/analyticsjs/ * @param {string} id Your Google Analytics Mobile App property + * @param {number} interval Optional dispatch period in seconds. Defaults to 30. * @return {Promise} */ @Cordova() - static startTrackerWithId(id: string): Promise { return; } + static startTrackerWithId(id: string, interval?: number): Promise { return; } /** * Enabling Advertising Features in Google Analytics allows you to take advantage of Remarketing, Demographics & Interests reports, and more