title: How to access Google Analytics API from a serverside background service?
body: <p>I'd like to pull in data from google analytics into an own database through an background cron job without the user having to authenticate every time.</p>
  
  <p>I do know <a href="https://stackoverflow.com/questions/26399357/where-to-optain-google-analytics-api-access-token">how to get an Google Analytics OAuth Access Token with user interaction</a> as I asked previously. Using OAuth won't work, since it requires user interaction. According to <a href="https://developers.google.com/analytics/devguides/reporting/core/v3/reference" rel="nofollow noreferrer">Google Analytics API Reference</a> OAuth as well as an Access Token can be used to access the stats of an page once on a per session base. However I'm looking for an persistent way to implement this in an background service.</p>
  
  <p>How can I access google analytics without user authentication or get an none expireing access token?</p>