title: installing Google Client Library for Google Analtics PHP
body: <p>first of all I am new to this topic, so I hope my question is not too stupid.</p>
  
  <p>I want my website to have PHP access to Google Analytics metrics. I followed every step of this <a href="https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-php" rel="noreferrer">description from google</a>. Unfortunately when I upload everything on my server and try to run the test-site, I always get the following error-message:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'Exception' with message 'This library
    must be installed via composer or by downloading the full package. See
    the instructions at
    <a href="https://github.com/google/google-api-php-client#installation" rel="noreferrer">https://github.com/google/google-api-php-client#installation</a>.' in
    /home/users/myftp/dev.mywebsite.com/dashboard/google-api-php-client-master/src/Google/autoload.php:14
    Stack trace: #0
    /home/users/myftp/dev.mywebsite.com/dashboard/HelloAnalytics.php(8):
    require_once() #1
    /home/users/myftp/dev.mywebsite.com/dashboard/HelloAnalytics.php(104):
    getService() #2 {main} thrown in
    /home/users/myftp/dev.mywebsite.com/dashboard/google-api-php-client-master/src/Google/autoload.php
    on line 14</p>
  </blockquote>
  
  <p>So apparently there is something wrong with the embedding of the Google client library. In the error message it says I have to use Composer, but in the GitHub documentation they say, manual download would be fine as well. I think in the end this shouldn't make any difference? I am not familiar with composer or GitHub, this is why i downloaded it manually. </p>
  
  <p>I uploaded it on the server and put it into the same directory like the HelloAnalytics.php. I address it in HelloAnalytics.php via </p>
  
  <pre><code>require_once 'google-api-php-client-master/src/Google/autoload.php'
  </code></pre>