Difference between revisions of "FBInstant.logEvent"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Log an app event with FB Analytics. See https://developers.facebook.com/docs/javascript/referen...")
 
Line 5: Line 5:
 
Log an app event with FB Analytics. See https://developers.facebook.com/docs/javascript/reference/v2.8#app_events for more details about FB Analytics.<br />
 
Log an app event with FB Analytics. See https://developers.facebook.com/docs/javascript/reference/v2.8#app_events for more details about FB Analytics.<br />
 
<source lang="lua">
 
<source lang="lua">
= FBInstant.logEvent(eventNamevalueToSumparameters,)
+
FBInstant.logEvent(eventName,valueToSum,parameters)
 
</source>
 
</source>
'''eventName:''' (string) Name of the event. Must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters. ''''''<br/>
+
'''eventName''': (string) Name of the event. Must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters. ''''''<br/>
'''valueToSum:''' (numbere) An optional numeric value that FB Analytics can calculate a sum with. '''optional'''<br/>
+
'''valueToSum''': (numbere) An optional numeric value that FB Analytics can calculate a sum with. '''optional'''<br/>
'''parameters:''' (table) An optional table that can contain up to 25 key-value pairs to be logged with the event. Keys must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters. Values must be less than 100 characters in length. '''optional'''<br/>
+
'''parameters''': (table) An optional table that can contain up to 25 key-value pairs to be logged with the event. Keys must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters. Values must be less than 100 characters in length. '''optional'''<br/>

Revision as of 11:17, 23 August 2018

Available since: Gideros 2018.3

Description


Log an app event with FB Analytics. See https://developers.facebook.com/docs/javascript/reference/v2.8#app_events for more details about FB Analytics.

 FBInstant.logEvent(eventName,valueToSum,parameters)

'eventName: (string) Name of the event. Must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters. '
valueToSum: (numbere) An optional numeric value that FB Analytics can calculate a sum with. optional
parameters: (table) An optional table that can contain up to 25 key-value pairs to be logged with the event. Keys must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters. Values must be less than 100 characters in length. optional