New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

thujohn/analytics

Google Analytics for Laravel 4
108,743 110

Larablocks Analysis

thujohn/analytics works with Laravel 4 and 5 (latest release 1.0.23, Dec 8, 2014), all past end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 4 and 5, past end of life
  • No release in the last 12 months (last: Dec 8, 2014)
  • 3 downloads a month (needs 10,000)
  • 110 GitHub stars (at least 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Dec 8, 2014.
  • No releases in the last 12 months.
  • First released: Jun 20, 2013.
  • Monthly downloads: 3, down 40% from six months ago.
  • 21 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.

Install
composer require thujohn/analytics
Latest Version:1.0.23
PHP:>=5.3.0
Laravel:4 · 5
License:MIT
Last Updated:Sep 11, 2015
Links: GitHub  ·  Packagist
Maintainer: thujohn

Analytics

Port of Laravel 3 bundle lordcoste/analytics-s2s for Laravel 4

Build Status

Installation

Add thujohn/analytics to composer.json.

"thujohn/analytics": "dev-master"

Run composer update to pull down the latest version of Analytics.

Now open up app/config/app.php and add the service provider to your providers array.

'providers' => array(
    'Thujohn\Analytics\AnalyticsServiceProvider',
)

Now add the alias.

'aliases' => array(
    'Analytics' => 'Thujohn\Analytics\AnalyticsFacade',
)

Configuration

Run php artisan config:publish thujohn/analytics and modify the config file with your own informations.

Usage

Querying the API for visits and pageviews in the last week.

More information about this calling the Google Analytics API can be found here https://developers.google.com/apis-explorer/#s/analytics/v3/analytics.data.ga.get A list of all Google Analytics metrics can be found here https://developers.google.com/analytics/devguides/reporting/core/dimsmets

$site_id = Analytics::getSiteIdByUrl('http://github.com/'); // return something like 'ga:11111111'

$stats = Analytics::query($site_id, '7daysAgo', 'yesterday', 'ga:visits,ga:pageviews');

Related Packages

kudobuzz/google-analytics-php

Kudobuzz Google Analytics Is A PHP Library For Making Google Analytics And OAuth...

2,568 0
academe/googleapi

Package to access the API of a Google account authorised by a user, for Laravel...

55 1
andrewboy/google-analytics-statistics

Laravel package for google analytics panel.

15 0
cornford/googlitics

An easy way to integrate Google Analytics with Laravel.

10,232 32
michaelcrowcroft/google-search-console-laravel

A Laravel package for Google Search Console API integration

1,138 1

Version History

Version Released PHP Laravel License
1.0.23 >=5.3.0 4.*|5.* MIT
1.0.22 >=5.3.0 4.*|5.* MIT
1.0.21 >=5.3.0 4.*|5.* MIT
1.0.20 >=5.3.0 4.*|5.* MIT
1.0.19 >=5.3.0 4.x MIT