Can't receive custom events.

Hello,I am trying to use new analytics and send custom events, but custom events are not showing in Event Browser or Data explorer. In same time standart events such as “gameStarted” and “gameRunning” are displaying.

I have create a custom event “installAndroidData” with a few custom(strings) parameters assigned in Event Manager. And how I use it:

Dictionary<string, object> parameters = new Dictionary<string, object>()
{
{ "utm_source", "TestData" }
};
AnalyticsService.Instance.CustomData("installAndroidData", parameters);

In Log i can see events:

Recorded event gameStarted at 2022-09-08 13:36:18.868 +03:00 (UTC)
Recorded event installAndroidData at 2022-09-08 13:36:26.682 +03:00 (UTC)

But in Event Browser or Data explorer only gameStarted showed.
I am also try to use AnalyticsService.Instance.Flush(); - no changes.
Please help.

Hi there,

Did you create the event schema for the event “installAndroidData” in the Event Manager?

Thanks,
Clare

Yes it is created.

8424987--1115070--event.jpg
8424987--1115076--params.jpg

How long did you wait? Sometimes it takes up to 1 day for these new custom events to show up

This event was created and first time send about a week ago

I’m experiencing the same… not seeing custom events, so I’m listening in here. It’s been like 12 hours or so since I send the first. I get other events, like gameStarted etc. but not the custom ones (I have two).

I have verified in Fiddler that they are actually send.

Ensure that you are initializing UGS Analytics first, as described here https://docs.unity.com/analytics/AnalyticsSDKGuide.html

Thanks, but I am. The default analytics comes through - it’s only my custom events that are missing.

I’m sending my custom event like this:

 AnalyticsService.Instance.CustomData("item_unlocked", new Dictionary<string, object>
                {
                    { "entity_id", args.EntityId }
                });

8431553--1116482--Screenshot_2.png

Thank you for confirming. You’ve checked that they are not showing under the Invalid events tab? If you want to send me your dashboard URL in a private message I can check too. Can you share your Fiddler capture?

Ahhhh… I actually looked there before, but there was nothing, but there is today :slight_smile:

8431577--1116485--Screenshot_4.png

So now I know why…but how do I then add that “entity_id” param, because I need that, else the event is useless.

I have tried the “Assign Parameter” button, but it’s like it’s only standard params I can pick from?

Ok… think I have figured it out :slight_smile:

1 Like

You can create your own parameters also. Please see https://docs.unity.com/analytics/EventManager.html where you can assign parameters from the available list or click Add New > Custom Parameter to create your own.

8431616--1116515--CustomParam.png

Yep thanks I figured it out.

1 Like

Yes, it is initialized, i receive standart events and didnt receive custom, but standart events use old sdk “sdkMethod”: “UA1_SDKLESS”, however Analitycs 4.2.0 is installed.

Legacy custom events won’t be sent over to the UGS Analytics dashboard, only the standard events.

@JeffDUnity3D

I installed analytics and analytics library from the package manager.

It only sends standard events but no custom events. The sdk is

“sdkMethod”: “UA1_SDKLESS”,

Have I installed the wrong thing?

I’m also a little confused about the set up. Does it need code to work? Its sending the standard events without me setting up any code. If I add an Analytics Event Tracker component will it work out of the box?

Hi @samvilm ,

Analytics Library is the package needed to define custom events for Legacy Analytics, this isn’t needed to use UGS Analytics (nor is switching Analytics on in the Services window that just sends standard events on Legacy).

For UGS Analytics, you need that package called “Analytics” to be installed and initialized - more info on initialization can be found here. Once that is done, standard events will be automatically available in UGS Analytics (should show up in Event Browser after 5 mins and up to an hour to show in dashboards/analysis tools). To define custom events they need to be defined in the Event Manager and in your game code - more info here.

Hope this helps! If you’ve already done all of the above, I recommend checking the invalid tab in the Event Browser to debug or sending me over your projectID and i’ll check it out for you.

Thanks,
Clare