analytic / cunghocvui
获取页面视图
dev-master
2019-06-28 14:49 UTC
Requires
- google/apiclient: ^2.0
This package is auto-updated.
Last update: 2024-09-29 03:10:21 UTC
README
使用本包从网站 Google Analytic 获取数据: https://cunghocvui.com/
安装
- 通过 composer 运行应用程序:composer require analytic/cunghocvui
- 发布包的配置文件:php artisan vendor:publish--provider="CungHocVui\Analytics\AnalyticsServiceProvider"
- 将密钥复制到 storage/app/analytic 路径下
用法
- 获取路径信息:GACungHocVui::searchPagePath($path)
- 查询数据:GACungHocVui::performQuery($query)