Retrieve Google Analytics data in Laravel
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.env.example
.gitattributes
.gitignore
artisan
composer.json
composer.lock
gulpfile.js
package.json
phpunit.xml
readme.md
server.php

readme.md

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

  1. Retrieve a selection of Google Analytics dimensions and metrics and display them in a table.
  2. Well, that's it ;-)

Screenshots

Homepage: homepage

Button: analytics

Table: table

Licence

Please refer to the Laravel licence