sendAnalyticEvent: Difference between revisions

From Bohemia Interactive Community
mNo edit summary
mNo edit summary
Line 14: Line 14:
|p1= eventName: [[String]] - ''unknown possible values''
|p1= eventName: [[String]] - ''unknown possible values''


|p2= keyValuePairs: [[Array]] with [key, value]:
|p2= keyValuePairs: [[Array]] with [key, value]
* key: [[String]] entry's name
* key: [[String]] entry's name
* value: [[String]], [[Number]], [[Boolean]] or [[Array]] - entry's value; if an [[Array]], inserts its content at the end of ''keyValuePairs''; if any other [[Data Type]], it is ignored
* value: [[String]], [[Number]], [[Boolean]] or [[Array]] - entry's value; if an [[Array]], inserts its content at the end of ''keyValuePairs''; if any other [[Data Type]], it is ignored

Revision as of 10:03, 2 January 2026

Hover & click on the images for description

Description

Description:
Generates new analytics events with given values, acceptable value types are string, scalar and bool.
Multiplayer:
Analytics are reserved to official server instances (server or client).
Groups:
Argo

Syntax

Syntax:
sendAnalyticEvent [eventName, keyValuePairs]
Parameters:
eventName: String - unknown possible values
keyValuePairs: Array with [key, value]
Return Value:
Boolean - true when done (not if the analytics were sent), false if the provided array is wrong

Examples

Example 1:
if (onOfficialServer) then { sendAnalyticEvent ["EventName", ["key1", false], ["key2", 1], ["key3", "two"]]; };

Additional Information

See also:
onOfficialServer sendCloudRequest sendCloudRequestClient sendCloudRequestServer

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note