Required packages:
Google Analytics bakend uses Service Account access type to the Google API. Required is Email address and the public key file.
To get the required credentials go to the Google Developers Console, then APIs & auth and then select Credentials. If you don’t have a key already press the Create New Client ID button and select Service Account option. Don’t forget to download the private key file.
Note
The email address you need is the email address generated for the Service Account, not your account email address.
Add the generated service account email address to the list of permissions in the Account User Management in the Google Analytics Admin page.
type is ga
Specify either account_id or account_name, not both. If none is specified then the first account in the account list is used.
Example:
[store]
type: ga
email: 123456789012-abcdefghijklmnopqrstuvwxyzabcdef@developer.gserviceaccount.com
key_file: key.p12
web_property: UA-123456-7
Google Analytics backend generates the model on-the-fly using the Analytics API. You have to specify that the provider is ga not the static model file itself:
{
"provider": "ga"
}