Step 1: Sign up for an account.
Visit the Google Analytics website to sign up for a new account. Click the Access Google Analytics button and follow the on-screen instructions.
Step 2: Setup account properties.
Google Analytics is flexible and can support different account configurations, but your setup affects how data appears in your reports. To help plan your setup, consult the articles in our overview of accounts, users, properties, and views.
If you’re setting up Google Analytics to track an app, consult our best practices for mobile app analytics setup.
Step 3: Setup your tracking code.
Include the Analytics tracking ID and code in your website or mobile app in order to collect and send usage data to your Analytics account. You can track multiple properties in the same account, but every property must be set up individually. Follow different processes to set up web tracking and to set up mobile app tracking.
Step 4: Fill Plugin Editor Settings.
1) Go to the Window → Google Analytics → Edit Settings
You need to specify at least one analytics account. Pressing Add New Account button and fill the account info as shown in the screenshot bellow.
- Account Name. - Just for you to be able to manage your analytics accounts. Will be used only in the plugins setting window.
- Tracking Id. - Tracking Id of the analytics account.
Note: First created account will be treated as the default account
Note: You can add more accounts and connect platform to account using Platforms tab.
As you probably noticed each account has Testing and Production option. This feature helps to prevent analytic data collection with production analytics id while you testing your game. The testing analytics account will be used in test mode. To enable / disable test mode you can use Testing checkbox as shown on the screenshot bellow.
Using testing account is not required, but highly recommended.
Note: You will get compilation warning that analytics tracking in test mode, to make sure you will not put build in production with the testing analytics enabled.
You also need to specify application info.
- App Name. Your Application Name.
- App Version. Your application build version.
You can fill it by yourself or use "Use Player Settings" checkbox which will fill data automatically depends on your project settings.
After the required settings are filled, you can start use analytics with your project.