Skip to content

Commit

Permalink
fix(google-analytics): fix parameter types in the trackMetric method (#…
Browse files Browse the repository at this point in the history
…1780)

* Fix parameter in the trackMetric method

In the trackMetric the first parameter is a number type;

* Update index.ts
  • Loading branch information
victorsosa authored and ihadeed committed Jul 10, 2017
1 parent 01ae8e1 commit 7bbd25c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@ionic-native/plugins/google-analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ export class GoogleAnalytics extends IonicNativePlugin {

/**
* Track custom metric
* @param key {string}
* @param key {number}
* @param value {any}
* @returns {Promise<any>}
*/
@Cordova({
successIndex: 2,
errorIndex: 3
})
trackMetric(key: string, value?: any): Promise<any> { return; }
trackMetric(key: number, value?: number): Promise<any> { return; }

/**
* Track a screen
Expand Down

0 comments on commit 7bbd25c

Please sign in to comment.