Type Function Return value none Revision 2017.3060 Keywords analytics, attribution, Tenjin, logEvent See also tenjin.init() tenjin.logPurchase() tenjin.*
Sends an event to Tenjin.
tenjin.logEvent( eventName [, eventValue] )
String. The name of the event.
Number. An optional event value. Must be an integer. The Tenjin system will use this value to sum up and track averages for the eventName
given.
local tenjin = require( "plugin.tenjin" ) local function tenjinListener( event ) -- Handle events here end -- Initialize plugin tenjin.init( tenjinListener, { apiKey="YOUR_API_KEY" } ) tenjin.logEvent( "myEvent" )