bodyTrack property

  1. @override
Map<String, Object> get bodyTrack
override

Implementation

@override
Map<String, Object> get bodyTrack {
  // Create with basic information
  var customBody = new Map<String, Object>();
  customBody.addEntries(this.toJson().entries);
  // Add Type t , to identify this hit as activate from the lookup hits
  customBody.addEntries({'t': typeOfEvent}.entries);

  // Set exposed flag info
  if (this.exposure_flag != null) {
    customBody.addEntries(
        {internal_exposure_flag: this.exposure_flag ?? ""}.entries);
  }
  // Set visitor expos info
  if (this.exposure_visitor != null) {
    customBody.addEntries(
        {internal_exposure_visitor: this.exposure_visitor ?? ""}.entries);
  }
  return customBody;
}