Skip to content

Commit f2ddca3

Browse files
committed
fix segment
1 parent 1d79eba commit f2ddca3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/hits/segment.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ class Segment extends BaseHit {
1010
@override
1111
Map<String, Object> get bodyTrack {
1212
var customBody = new Map<String, Object>();
13-
customBody.addAll({"s": persona, "t": typeOfEvent});
13+
// Convert persona values to String
14+
Map<String, String> personaString =
15+
persona.map((key, value) => MapEntry(key, value.toString()));
16+
customBody.addAll({"s": personaString, "t": typeOfEvent});
1417
// Add commun body
1518
customBody.addAll(super.communBodyTrack);
1619
return customBody;

0 commit comments

Comments
 (0)