定制 thujohn/analytics 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thujohn/analytics

Composer 安装命令:

composer require thujohn/analytics

包简介

Google Analytics for Laravel 4

README 文档

README

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');

统计信息

  • 总下载量: 108.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 113
  • 点击次数: 0
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 110
  • Watchers: 16
  • Forks: 30
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-06-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固