Registering for google analytics account
Analytics page is powered by google analytics so you will need to register for google analytics and add supplied code to your site. Here's how to do it.
Important! This will only enable tracking. See below on how to get the analytics page on the site working.
- 1. Go to this url. You will be prompted to login to your google account or create a new one if you don't have it already. Do it.
- 2. Click on Admin -> Property -> Create new Property -> fill out required fields -> click on get tracking ID.


- 3. Go to admin -> settings -> analytics and paste the code into google analytics tracking code field (only paste in the code that starts with UA, not the whole script).
Getting Service Account Key
To get analytics page on the site working, you will need to get a service account key. Head over to Google API's site and create or select a project.

Next, specify which API's the project may consume. In the list of available API's click "Google Analytics API". On the next screen click "Enable".

Now that you've created a project that has access to the Analytics API, download a file with the credentials. Click "Credentials" in the sidebar. You'll want to create a "Service account key".


On the next screen you can give the service account a name. You can name it anything you'd like. Select "Project > Owner" Role. In the service account id you'll see an email address. Note this address as it will be needed later on. Select "P12" as the key type and click "Create" to download the P12 file.
You will need to upload this file from "admin > settings > analytics" page on your site later on.
Granting permissions to your Analytics property
Go back to google analytics site and "User management" page in the Admin-section of the property.

Add a new user using email address you have saved earlier. Make sure you use google service account (ending with .iam.gserviceaccount.com) and not personal email address.
Getting the view ID
The last thing you'll have to do is fill in credentials in BeDrive "admin > settings > analytics" page. You have service email and google ID from earlier, get View ID from "View setting" in the Admin-section of the property.

