communBodyTrack property

Map<String, Object> get communBodyTrack

Implementation

Map<String, Object> get communBodyTrack {
  var result = new Map<String, Object>();

  result.addAll({"cid": clientId, "vid": visitorId, "ds": dataSource});

  /// Refracto later
  /// user ip
  if (userIp != null) result["uip"] = dataSource;

  /// ScreenResolution
  if (screenResolution != null) result["sr"] = screenResolution ?? "";

  /// Screen Color Depth
  if (screenColorDepth != null) result["sd"] = screenColorDepth ?? "";

  /// user language
  if (userLanguage != null) result["ul"] = userLanguage ?? "";

  /// Session number
  if (sessionNumber != null) result["sn"] = sessionNumber ?? 0;

  return result;
}