diff --git a/packages/core/lib/utils/store/web.dart b/packages/core/lib/utils/store/web.dart index a90b27e..59ea72c 100644 --- a/packages/core/lib/utils/store/web.dart +++ b/packages/core/lib/utils/store/web.dart @@ -89,6 +89,16 @@ class StoreImpl implements Store { } } } + + if (anonymousId != null) { + try { + final decoded = json.decode(anonymousId); + if (decoded is String) { + anonymousId = decoded; + } + } catch (_) {} + } + return anonymousId ?? ''; } }