Skip to main content

Posts

Showing posts with the label google-analytics

QuickTip: Ingesting Google Analytics API with Apache NiFi

QuickTip:   Ingesting Google Analytics API with Apache NiFi  Design your query / test the API here: https://ga-dev-tools.appspot.com/query-explorer/ Building this NiFi flow is trivial. Add your URL with tokens from the Query Explorer console. You will need to reference the JRE that NiFi is using and it's cacerts if you don't want to build your own trust store.   The default password for JDK 8 is changeit .   No really. Here are our results in clean JSON Here are some attributes NiFi shows. Example JSON Results {   "kind": "analytics#gaData",   "id": "https://www.googleapis.com/analytics/v3/data/ga?ids=ga:33&metrics=ga:users,ga:percentNewSessions,ga:sessions&start-date=30daysAgo&end-date=yesterday",   "query": {     "start-date": "30daysAgo",     "end-date": "yesterday",     "ids": "ga:33",     &