diff --git a/src/plugins/googleanalytics.ts b/src/plugins/googleanalytics.ts index d7939b16..001437b9 100644 --- a/src/plugins/googleanalytics.ts +++ b/src/plugins/googleanalytics.ts @@ -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 { 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 { return; } /**