typeOfEvent property

String get typeOfEvent

Implementation

String get typeOfEvent {
  String ret = "None";
  switch (type) {
    case HitCategory.SCREENVIEW:
      ret = 'SCREENVIEW';
      break;
    case HitCategory.PAGEVIEW:
      ret = 'PAGEVIEW';
      break;
    case HitCategory.ITEM:
      ret = 'ITEM';
      break;
    case HitCategory.EVENT:
    case HitCategory.CONSENT:
      ret = 'EVENT';
      break;
    case HitCategory.TRANSACTION:
      ret = 'TRANSACTION';
      break;
    case HitCategory.ACTIVATION:
      ret = 'ACTIVATE';
      break;
    case HitCategory.SEGMENT:
      ret = 'SEGMENT';
      break;
    case HitCategory.TROUBLESHOOTING:
      ret = "TROUBLESHOOTING";
      break;
    case HitCategory.USAGE:
      ret = "USAGE";
      break;
    default:
  }
  return ret;
}