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});

  // ad xcpc informations
  result.addEntries(_createTuple().entries);

  /// Refracto later
  /// user ipx
  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;
}