trackKFFormViewed function

Future<void> trackKFFormViewed(
  1. String phone,
  2. bool consent
)

Implementation

Future<void> trackKFFormViewed(String phone, bool consent) =>
    SnowplowTrackerService.sendCustomEventToSnowPlow({
      ..._kfBase(KFEventsLabel.kfFormViewed, 'page_load'),
      'value': phone,
      'property_5': 'consent_given',
      'value_5': consent ? 1 : 0,
    });