Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user properties do not get updated #120

Closed
tomasbaran opened this issue Oct 26, 2023 · 5 comments
Closed

user properties do not get updated #120

tomasbaran opened this issue Oct 26, 2023 · 5 comments

Comments

@tomasbaran
Copy link

This is how I set it and it logs them successfully, yet it doesn't get through even after 30 minutes.

try {
        MixpanelService.mixpanel?.getPeople().set('last_used', DateTimeUtils.mixpanelNow());
        MixpanelService.mixpanel?.getPeople().set('active_period', activePeriod);
        MixpanelService.mixpanel?.getPeople().set('completed_todoes_per_day', double.parse(completedTodoesPerDay.toStringAsFixed(0)));
        log('mixpanel updated: ${DateTimeUtils.mixpanelNow()}, $activePeriod, ${completedTodoesPerDay.toStringAsFixed(0)}');
      } catch (e) {
        log('\x1B[31mError #3[adding stat]: $e\x1B[0m');
        Logger(printer: PrettyPrinter(colors: false)).e('\x1B[31mError #3[updating mixpanel]: $e\x1B[0m');
      }

Events do come through, so do the user properties but only sporadically.

@smn-snkl
Copy link

We are having the same issues. Did you find any solution?

@tomasbaran
Copy link
Author

unfortunately, not.

@tomasbaran
Copy link
Author

is mixpanel dead for flutter or for any platform? It seems it's not working correctly and noone is responding to issues.

@tomasbaran
Copy link
Author

what would be a good alternative? In the past firebase analytics didn't work as precisely as mixpanel, could it be the other way around this year?

@tomasbaran
Copy link
Author

@smn-snkl actually my issue was divided into two seperate issues:

  1. one is still being open: I reported it seperataly now here: getPeople().increment() has a glitch when manually changed #121
  2. as for the regular userProperty (getPeople().set()), it was a bug on my side: I forgot to add MixpanelService.mixpanel?.identify(authService.uid!); for already signed in users. Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants