Type Function Return value none Revision 2017.3060 Keywords analytics, Google Analytics, googleAnalytics, logEvent See also googleAnalytics.init() googleAnalytics.logScreenName() googleAnalytics.*
Logs an event with Google Analytics.
googleAnalytics.logEvent( category, action [, label] [, value] )
String. String which identifies the group of objects to track, for example "userAction"
.
String. A string which is uniquely paired with the category and is commonly used to define the type of user interaction, for instance "button press"
.
String. An optional string which provides additional dimensions to the event data, for example "menu"
or "quit"
.
Number. An optional integer which specifies the event value. Values must be
local googleAnalytics = require( "plugin.googleAnalytics" ) -- Initialize Google Analytics googleAnalytics.init( "CoronaApp1", "UA-12345678-90" ) -- Log event with Google Analytics googleAnalytics.logEvent( "userAction", "button press", "menuItem", 2 )