Retrieve Google Analytics data in Laravel via AJAX call to the Google API
For step by step instructions, visit my blog post. No database required!
Installation
Clone the repo
git clone https://github.com/jeanquark/google-analytics.git
Move to the newly created folder and install all dependencies:
cd google-analytics
composer install
Rename .env.example
mv .env.example .env
Generate the application key
php artisan key:generate
Finally, add a new folder named .google containing your personal service account file. To obtain this file, follow the instructions (Step 1) on this page.
Visit the newly created app on your favorite browser.
Features
- Retrieve a selection of Google Analytics dimensions and metrics and display them in a table.
- Well, that's it ;-)
Screenshots
Licence
Please refer to the Laravel licence