AnalyticsService doesnt contain a definition for CustomData

I couldn’t figure out why my script return error about CustomData not being part of ANalyticsService, I already made a custom event in Analytics.

1 Like

It seems that CustomEvent is obsolete and replaced into RecordEvent. Correct me if im wrong.

1 Like

That is correct!
Please ensure you have the latest version of the SDK installed.

More information on recording events can be found here

1 Like

Could you please update your docs then? They still reference this function

2 Likes

Thanks for bringing this to our attention! We will update the learn documentation as soon as possible!

The tutorial is still not updated 1 year later. As of this day, after the vulnerability patch, I am asked to upgrade the Analytics package, and I have to switch to the newer API, refer to Create a custom event