Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.1 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.1 KB

Google Analytics Data Process

Grabs the realtime active user and page views for a site and submit the data to your ElasticSearch server.

Setup

You need to have a config folder with the following

/home/GA/config
- appsettings.json
- analytics.p12 # From Google Console

Example appsettings.json

{
  "ElasticSearchUrl": "http://logs.example.com:9200/YourIndexName/activedata/_bulk",
  "GAID": "Analytics Profile ID eg. 12345678",
  "ServiceAccountEmail": "[email protected]",
  "IntervalMs": 60000
}

Run

docker run -v /home/GA/config:/app/config cadab/googleanalyticdataprocess

Troubleshooting

Create a Google Console Service Account for Google Analytics: Click here to create Service Account
Make sure to add your Google Console Service Account to your User Management permissions in Google Analytics
Where to find your Google Analytics Profile View ID

Google Analytics Settings