How to implement Game Analytics using Unity Analytics
Tags: gamedev, unity3d, analytics
Published: 2023-01-23 11:59:36

**1. -  Setting up your project for Unity Services
2. -  Setting Up Analytics**

To get started with Unity’s family of services, you must first link your project to a Unity Services Project ID. A Unity Services Project ID is an online identifier which is used across all Unity Services. These can be created within the Services window itself, or online on the Unity Services website. The simplest way is to use the Services window within Unity, as follows:

To open the Services Window, go to Window > Unity Services, or click the cloud button in the toolbar. . If you have not yet linked your project with a Services ID, the following appears:


![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xcus4zsmahpapy867ieb.png)

This allows you to create a new Project ID or select an existing one.

To create a Project ID, you must specify an Organization and a Project Name.

If this is the first time you are using any of the Unity Services, you will need to select both an Organization and a Project name. The Select organization field is typically your company name.

When you first open a Unity Account (usually when you first download and install Unity), a default “Organization” is created under your account. This default Organization has the same name as your account username. If this is the Organization you want your Project to be associated with, select this organization from the list.

Sometimes people need to be able to work in more than one organization - for example, if you are working with different teams on different projects. If you need to work with multiple organizations, you can add and manage your organizations on the organization ID web page. If you belong to multiple organizations, they will appear in the list.

Select your organization and click Create.


![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5o4vsta6w9cpw0tixugo.png)

The Project name for your new Unity Services Project ID is automatically filled in with the name you picked for your Project when you first created it. You can change the Project name later in the Settings section of the Services window.

Sometimes you might need to re-link your project with the Unity Services Project ID. In this case, select the Project from the list of your existing Projects that are registed with Unity Services.

**2. - Setting Up Analytics**

Once you have set up your project for Unity Services, you can enable the Analytics service.

To do this, in the Services window, select “Analytics” and then click the “Off” button to toggle it On. If you haven’t already done so, at this stage you will need to complete the mandatory Age Designation field for your project. (Again, you may have already done this for a different Unity Service, such as Ads). This age designation selection will appear in the Services window.

To open the Services Window, go to Window > Unity Services, or click the cloud button in the toolbar. . If you have not yet linked your project with a Services ID, the following appears:


![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rlkhv6vr9ve3zb6ritvc.png)

This allows you to create a new Project ID or select an existing one.

To create a Project ID, you must specify an Organization and a Project Name.

If this is the first time you are using any of the Unity Services, you will need to select both an Organization and a Project name. The Select organization field is typically your company name.

When you first open a Unity Account (usually when you first download and install Unity), a default “Organization” is created under your account. This default Organization has the same name as your account username. If this is the Organization you want your Project to be associated with, select this organization from the list.

Sometimes people need to be able to work in more than one organization - for example, if you are working with different teams on different projects. If you need to work with multiple organizations, you can add and manage your organizations on the organization ID web page. If you belong to multiple organizations, they will appear in the list.

Select your organization and click Create.
 
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kj1m7zqxttf1yihrv8n5.png)

The Project name for your new Unity Services Project ID is automatically filled in with the name you picked for your Project when you first created it. You can change the Project name later in the Settings section of the Services window.

Sometimes you might need to re-link your project with the Unity Services Project ID. In this case, select the Project from the list of your existing Projects that are registed with Unity Services.