Skip to content

Send modified metadata on Wiredash.trackEvent #367

Open
@memishood

Description

@memishood

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    sdkThis issue affects the sdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions