Skip to content

How to integrate admin dashboard with google analytics ?

Vahid Taghizadeh edited this page Aug 18, 2017 · 4 revisions

Hi everybody,

I integrated google analytics too admin dashboard of flashboard and you can easily set some configuration to appear your reports on admin dashboard like below : http://138.68.46.113/flashboard

Configuration

1. Login into your Google Analytics Account .

Under the Admin select your account, select View Settings, under basic settings you will see your View ID. Define GOOGLE_VIEWID in env file and set your view id as first step. /config/dev.env.js

2.Creating a service account .

  1. Open the Service accounts page. If prompted, select a project.
  2. Click Create service account.
  3. In the Create service account window, type a name for the service account, and select Furnish a new private key. If you want to grant G Suite domain-wide authority to the service account, also select Enable G Suite Domain-wide Delegation. Then click Create. Your new public/private key pair is generated and downloaded to your machine; it serves as the only copy of this key. You are responsible for storing it securely.

After download your json file put it on your node_module folder as google.json file.

TODO's

We should create report section in our admin dashboard application with google analytics integration and create all charts and table reports with filters of devices browsers and real time users and etc.