sendAnalyticEvent: Difference between revisions
BrettMayson (talk | contribs) mNo edit summary |
(fixed formatting for parsing) |
||
| Line 15: | Line 15: | ||
|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 Types|Data Type]], it is ignored | ||
|r1= [[Boolean]] - [[true]] when done (not if the analytics were sent), [[false]] if the provided array is wrong | |r1= [[Boolean]] - [[true]] when done (not if the analytics were sent), [[false]] if the provided array is wrong | ||
Latest revision as of 18:51, 5 January 2026
Description
- Description:
- Generates new analytics events with given values, acceptable value types are string, scalar and bool.
- Multiplayer:
- 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
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note