Skip to content

Commit

Permalink
feat(google-analytics): add missing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Aug 15, 2016
1 parent b4158f4 commit 689bfd9
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/plugins/googleanalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,34 @@ export class GoogleAnalytics {
* https://developers.google.com/analytics/devguides/collection/analyticsjs/user-id
* @param {string} id
*/
@Cordova()
static setUserId(id: string): Promise<any> { return; }
@Cordova({sync: true})
static setUserId(id: string): void { }

/**
* Sets the app version
* @param appVersion
*/
@Cordova({sync: true})
static setAppVersion(appVersion: string): void { }

/**
* Set a anonymize Ip address
* @param anonymize
*/
@Cordova({sync: true})
static setAnonymizeIp(anonymize: boolean): void { }

/**
* Enabling Advertising Features in Google Analytics allows you to take advantage of Remarketing, Demographics & Interests reports, and more
* @param allow
*/
@Cordova({sync: true})
static setAllowIDFACollection(allow: boolean): void { }

/**
* Enable verbose logging
*/
@Cordova()
@Cordova({sync: true})
static debugMode(): Promise<any> { return; }

/**
Expand Down

0 comments on commit 689bfd9

Please sign in to comment.