

Start now Part 2: Setting up the Unity project to work with Crashlytics When you’re done, simply click “Finish”, and Google Analytics will now be enabled for this Firebase project! This will allow you to browse the list of existing properties and pick the one you want: However, if you already have one, you can also click the edit icon: Then, choose the right Google Analytics account from the dropdown list:īy default, the integration workflow will create a new Google Analytics property to track the errors related to this app. To do this, go to the project’s settings in the Integration tab: Warning: This tutorial builds on the previous one about Codemagic and Firebase, so if you haven’t looked at it, make sure to check it out! Also, it relies on the same sample project, my Slash’n’crack game, which you can find on GitLab over here. 🚀 Part 1: Preparing the Firebase project for Crashlyticsįirst things first, we need to go to our Firebase dashboard to properly configure Crashlytics on this side.Īs explained in Google’s official docs, to actually get Crashlytics crashes or alerts, we first need to enable Google Analytics so that our app can log events to the Firebase project.

Finally, you also need to update your CI/CD pipeline to support the changes.

TL DR: To add events monitoring with Crashlytics to a Unity Android app, you’ll first need to prepare a Firebase project, then add the Firebase plugin to Unity and configure Unity to work with Firebase. This post has been updated in July 2022 to introduce some fixes to the codemagic.yaml file in the sample project.
