FMX.Analytics.AppAnalytics.TAppAnalytics.TrackEvent
Delphi
procedure TrackEvent(const ACategory: string; const AAction: string = string.Empty; const ALabel: string = string.Empty; const AValue: Double = 0.0);
C++
void __fastcall TrackEvent(const System::UnicodeString ACategory, const System::UnicodeString AAction = System::UnicodeString(), const System::UnicodeString ALabel = System::UnicodeString(), const double AValue = 0.000000E+00);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Analytics.AppAnalytics.pas FMX.Analytics.AppAnalytics.hpp |
FMX.Analytics.AppAnalytics | TAppAnalytics |
Description
Tracks a custom event.
Call this method to do your own event tracking. You might use this to track feature usage, performance data, or anything else you like, provided the information remains anonymous.
You can define a set of input parameters to describe the event being tracked. See the following table with a brief explanation of these input parameters.
Parameter | Description |
---|---|
|
The |
|
|
|
|
|
|
- Note: Only
ACategory
is required. The AppAnalytics service will record the first 64 characters of each ofACategory
,AAction
, andALabel
.
If your application analytics component is not enabled, TrackEvent has no effect.
If ACategory
is an empty string, TrackEvent raises an EAppAnalyticsCategoryMissingException exception with the following message:
- AppAnalytics custom event error: category cannot be empty.