Question

Event properties not set flutter web

  • 24 May 2023
  • 1 reply
  • 98 views

Hi,

I am developing a flutter web application.

I am tracking events using the flutter sdk version 3.14.0. The events are tracked and work.

The issue is with event properties: they are not tracked. The JSON sent does not contain them.

Here is how I track an event:

Amplitude.getInstance("instance_name").logEvent(
"activity_create",
{
"activity_type": type.toString(),
},
null,
null,
false,
);

It looks a little bit different than the guide but that is because the code in the guide is outdated - using 

analytics.logEvent('MyApp startup', eventProperties: {
'friend_num': 10,
'is_heavy_user': true
});

throws compile errors.

Any idea on what might be wrong?


1 reply

Userlevel 5
Badge +8

@Manuel Cardenas welcome and apologies for the very long delay. I understand that some of your events are missing event properties. Are you seeing missing event properties across all environments or is this only happening in mobile vs web?

Reply