Type Function Return value none Revision 2017.3060 Keywords analytics, Google Analytics, googleAnalytics, init See also googleAnalytics.logEvent() googleAnalytics.logScreenName() googleAnalytics.*
Initalizes the Google Analytics plugin. This step is mandatory before any other features or methods can be used.
googleAnalytics.init( appName, trackingID )
String. The app name specified in the Google Analytics dashboard, ensuring that data sent from the app is categorized properly.
String. The tracking ID for your account, obtained from the Google Analytics dashboard.
local googleAnalytics = require( "plugin.googleAnalytics" ) -- Initialize Google Analytics googleAnalytics.init( "CoronaApp1", "UA-12345678-90" )