2017 © Pedro Peláez
 

asgard-module ganalytic

image

bcscoder/ganalytic

  • Thursday, February 2, 2017
  • by yusida
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Google Analytic Module

Instalation

composer require bcscoder/ganalytic

Create file laravel-analytics.php in config folder, (*1)

<?php

return [

    /*
     * The view id of which you want to display data.
     */
    'view_id' => env('ANALYTICS_VIEW_ID'),

    /*
     * Path to the client secret json file. Take a look at the README of this package
     * to learn how to get this file.
     */
    'service_account_credentials_json' => env('ANALYTICS_JSON_FILE'),
    //'service_account_credentials_json' => storage_path('app/laravel-google-analytics/Juanda Garden-1b2cc7efe5ec.json'),

    /*
     * The amount of minutes the Google API responses will be cached.
     * If you set this to zero, the responses won't be cached at all.
     */
    'cache_lifetime_in_minutes' => 60 * 24,

    /*
     * The directory where the underlying Google_Client will store it's cache files.
     */
    'cache_location' => storage_path('app/laravel-google-analytics/google-cache/'),

];

`, (*2)

Update view id and upload google credential json., (*3)

For more info visit : https://github.com/spatie/laravel-analytics, (*4)

The Versions