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

How to add VersionCode in amplitude events #190

Closed
Dr-Usman opened this issue May 28, 2024 · 3 comments
Closed

How to add VersionCode in amplitude events #190

Dr-Usman opened this issue May 28, 2024 · 3 comments

Comments

@Dr-Usman
Copy link

Hello i have integrated the amplitude analytics in flutter application. and It's working great and record each event properly.
I have added default tracking configuration as well. It shows version number of the app in dashboard and in event detail/user look up page. But is there any way to add or configure to show versionCode as well.

Configuration

static final Amplitude amplitude = Amplitude(
    Configuration(
      apiKey: apiKey,
      defaultTracking: DefaultTrackingOptions.all(),
      appVersion: locator<ConfigBloc>().versionNumber,
    ),
  );

Pubspec.yaml => version: 0.0.7+8

Dashboard
Screenshot 2024-05-28 at 12 38 58 PM

@Mercy811
Copy link
Contributor

Mercy811 commented May 29, 2024

Hi @Dr-Usman, currently plugins are not supported. We will add plugin support in the future but currently no ETA for it. You can add versionCode by track() to set it as a event property or by identify() to set it as a user property.

amplitude.track(BaseEvent('test event', eventProperties: {'versionCode': 1}));

final Identify identify = Identify()
      ..set('versionCode', 1);
amplitude.analytics.identify(identify);

@Dr-Usman
Copy link
Author

@Mercy811 Thank you so much for your response and assistance. There's one more thing i would like to ask Experiment SDK for Flutter? There's support for react native and other client and server sides but i couldn't find for flutter, only analytics SDK support for Flutter. When we are expecting to have an Experiment SDK for Flutter as well?

@Mercy811
Copy link
Contributor

Hi @Dr-Usman, we don't have plan for Experiment Flutter SDK unfortunately.

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