analytic/cunghocvui

获取页面视图

dev-master 2019-06-28 14:49 UTC

This package is auto-updated.

Last update: 2024-09-29 03:10:21 UTC


README

使用本包从网站 Google Analytic 获取数据: https://cunghocvui.com/

安装

  1. 通过 composer 运行应用程序:composer require analytic/cunghocvui
  2. 发布包的配置文件:php artisan vendor:publish--provider="CungHocVui\Analytics\AnalyticsServiceProvider"
  3. 将密钥复制到 storage/app/analytic 路径下

用法

  1. 获取路径信息:GACungHocVui::searchPagePath($path)
  2. 查询数据:GACungHocVui::performQuery($query)