Sign inSign up

cadab/googleanalyticdataprocess

By cadab

•Updated about 8 years ago

DotNet Core console app that grabs the real time users and page views and pushes to ElasticSearch

Image
0

147

cadab/googleanalyticdataprocess repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

69.9 MB

Last updated

about 8 years ago

docker pull cadab/googleanalyticdataprocess