You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make analytics-settings-service getClientId public
* Allow tracking for multiple Google Analytic Projects
* Add cross client custom dimensions
* Add npmVersion and dayFromFirstRun custom dimension values
* Update cross client analytics google tracking id
* Remove unnecessary custom dimensions from the cross client project
* Add doc and public method test
console.log(`Detached debugger for device with id ${debugInfo.deviceIdentifier}`);
856
858
});
857
859
```
860
+
## analyticsSettingsService
861
+
Provides methods for accessing the analytics settings file data.
862
+
863
+
### getClientId
864
+
The `getClientId` method allows retrieving the clientId used in the analytics tracking
865
+
866
+
* Definition:
867
+
```TypeScript
868
+
/**
869
+
* Gets the clientId used for analytics tracking
870
+
* @returns{Promise<string>} Client identifier in UUIDv4 standard.
871
+
*/
872
+
getClientId():Promise<string>;
873
+
```
874
+
875
+
* Usage:
876
+
```JavaScript
877
+
tns.analyticsSettingsService.getClientId()
878
+
.then(clientId=>console.log(clientId));
879
+
```
858
880
859
881
## How to add a new method to Public API
860
882
CLI is designed as command line tool and when it is used as a library, it does not give you access to all of the methods. This is mainly implementation detail. Most of the CLI's code is created to work in command line, not as a library, so before adding method to public API, most probably it will require some modification.
0 commit comments