Skip to content

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

Notifications You must be signed in to change notification settings

jamescoverdale/GoogleAnalyticDataProcess

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published