Connect your Google Analytics data to the Developer Data framework

Connect your Google Analytics data with the Developer Data Framework.
Read time 1 minuteLast updated 2 days ago

Connect your Google Analytics data to the Developer Data framework to get a more comprehensive view of data for your project. Once you’ve integrated your data with the Developer Data framework, Unity treats data imported from external sources as Developer Data and uses the data according to your defined Usage Settings.

Create a Google service account to connect with the Developer Data framework

  1. In the Google console, create a service account.
    1. Grant the service account the Roles:
      • BigQuery Data Viewer
      • Service Usage Consumer

        These roles are used to validate the integration, and read data from the BigQuery instances.
    2. Create credentials for the service account, with key type JSON. From your service account details, select Keys > Add key.
  2. In the Google console, search for the Google Analytics Admin API, and select Enable.
  3. In Google Analytics, add your service account as a new user with the
    Viewer
    role to your selected property.
For more information on setting up service accounts, refer to Service account credentials (Google). For more information on adding users to Google Analytics, refer to Add, edit and delete Analytics users and user groups (Google).

Connect your Google service account in the Unity Dashboard

  1. In the Unity Dashboard, go to Projects > Settings.
  2. In the Settings tab, go to the Google Analytics and BigQuery field and select the edit button (pencil icon).
  3. In the Google Analytics and BigQuery dialog > Value field, paste the contents of your service account's JSON key. For an example JSON key, refer to Create a service account key (Google).
    1. Select Link.
    2. Select Confirm.
For more information on these fields, refer to Google Analytics and BiqQuery UI reference.