[SOLVED] Cordova-plugin-google-analytics definition file


#1

Anyone knows which @types could be use for the plugin cordova-plugin-google-analytics (if there is one)?
Or maybe had written a public definition file about it?


#2

Forget, the definition file comes with the plugin:

https://github.com/danwilson/google-analytics-plugin/blob/master/typescript/analytics.d.ts

#3

The even correct way to solve it is even to do not use a definition file but ionic-native instead :wink:

GoogleAnalytics.startTrackerWithId for example