bodyTrack property
Implementation
@override
Map<String, Object> get bodyTrack {
var customBody = new Map<String, Object>();
customBody.addAll({
"t": typeOfEvent,
"ea": this.action,
"ec": (this.category == FSCategoryEvent.Action_Tracking)
? ActionTracking
: UserEngagement
});
// Add label
if (label != null) customBody['el'] = label ?? "";
// Add value
if (eventValue != null) customBody['ev'] = eventValue ?? 0;
// Add commun body
customBody.addAll(super.communBodyTrack);
return customBody;
}