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

Send modified metadata on Wiredash.trackEvent #367

Open
memishood opened this issue Oct 26, 2024 · 0 comments
Open

Send modified metadata on Wiredash.trackEvent #367

memishood opened this issue Oct 26, 2024 · 0 comments
Labels
sdk This issue affects the sdk

Comments

@memishood
Copy link

Is your feature request related to a problem? Please describe.
I set metadata after every login attempt like this:

void _userSideEffect(User? user) {
    if (user != null) {
      Wiredash.of(context).modifyMetaData(
        (metadata) => metadata
          ..userId = user.id
          ..userEmail = user.email,
      );
    }
  }

When I track an event, it doesn't send the metadata that was added on login attempt, I need to provide the data every time manually.

await Wiredash.trackEvent('send_message');

Describe the solution you'd like
It would be very nice that Wiredash SDK sends the metadata automatically when trackEvent is called

Describe alternatives you've considered
Maybe this feature can depend on a bool enable/disable field for those who don't want to send metadata.

await Wiredash.trackEvent('send_message', withMetadata: true or false);
@memishood memishood added the sdk This issue affects the sdk label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sdk This issue affects the sdk
Projects
None yet
Development

No branches or pull requests

1 participant