Integrate NuTracking to your Unity project

Posted by on Jul 18, 2011

The integration of NuTracking is quite simple:

1. Register an account on Google Analytics (skip if you already have a GA account)

Before you begin using NuTracking, you must first create a free account at and create a new website profile in that account using a fake but descriptive website URL (e.g. Once you create the profile, write down or keep a copy of the web property ID that is generated for the newly-created profile.

A Web property ID is also known as the UA number of your tracking code and looks like UA-xxxxx-yy, where the x’s and y’s indicate the unique numbers for your profile. You must indicate the web property ID you’d like to use when instantiating the tracking object. See Web Property for more information.

You must indicate to your users, either in the application itself or in your terms of service, that you reserve the right to anonymously track and report a user’s activity inside of your app. Your use of the Google Analytics SDK is additionally governed by the Google Analytics Terms of Service, which you must agree to when signing up for an account.

BTW. If you are developing an iOS game. There is the following consent in the default EULA:

b. Consent to Use of Data: You agree that Licensor may collect and use technical data and related information—including but not limited to technical information about your device, system and application software, and peripherals—that is gathered periodically to facilitate the provision of software updates, product support, and other services to you (if any) related to the Licensed Application. Licensor may use this information, as long as it is in a form that does not personally identify you, to improve its products or to provide services or technologies to you.

2. When you successfully added your project to Google Analytics, remember your domain name and account number

or you might also find that in “Overview” of Google Analytics

3. Enable “E-Commerce Website” in project setting for tracking in-app purchases

4. On the game startup script, add the following statement to initialize NuTracking:

“UA-24576515-1″/*your account code*/,
“”/*your domain name*/,
“nutracking-001″/*short name of your game*/,

5. Check Example.cs , which contains the sample code of adding user event and purchases