setSegments(List<String> segments) { if (segments.isEmpty) return; segments.forEach( (value) => appendScript( 'window.\$crisp.push(["set", "session:segments", [["$value"]]]);'), ); }