sendAnalyticEvent

From Bohemia Interactive Community
Revision as of 19:46, 7 December 2023 by Lou Montana (talk | contribs) (Page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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 - format [key, value] where:
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 or on the Forums.
Only post proven facts here! Add Note