trackConversion abstract method

Future<void> trackConversion(
  1. int goalId, [
  2. double? revenue,
  3. bool negative = false,
  4. List<CustomData> metadata = const [],
])

Tracks a conversion for the specified goal using trackConversion().

  • goalId (required): The goal to track.
  • revenue (optional, default: 0): Revenue value associated with the conversion.
  • negative (optional, default: false): Indicates whether the conversion should be considered negative.
  • metadata (optional, default: []): Additional metadata related to the conversion.

This method does not return a value and executes asynchronously.

Implementation

Future<void> trackConversion(
  int goalId, [double? revenue, bool negative = false, List<CustomData> metadata = const []]
);