ismaelillodev/fathom-analytics
Composer 安装命令:
composer require ismaelillodev/fathom-analytics
包简介
This is my package fathom-analytics
README 文档
README
This package is under development right now. Any suggestions are greatly appreciated!
Installation
Install the package via composer:
composer require ismaelillodev/fathom-analytics:dev-main
Publish the config file with:
php artisan vendor:publish --tag="fathom-analytics-config"
Add your FATHOM_ACCESS_TOKEN variable to your .env
Usage
use Ismaelillodev\FathomAnalytics\DTO\Aggregation; use Ismaelillodev\FathomAnalytics\FathomAnalytics; public function __construct( private FathomAnalytics $fathomAnalytics ){} public function handle() { $response = $this->fathomAnalytics->aggregations( new Aggregation( entity: 'pageview', entity_id: 'your_site_id', aggregates: 'uniques', field_grouping: 'hostname,pathname' )); //do something awesome with the response! }
Current features
If you have any questions about how to make a specific request you can visit the API documentation (https://usefathom.com/api).
Aggregations
Call the aggregations function and pass an Aggregation DTO.
$this->fathomAnalytics->aggregations( new Aggregation( entity: 'pageview', entity_id: 'your_site_id', aggregates: 'visits', ));
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 111
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-03