承接 pugofka/yametrika-sdk-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pugofka/yametrika-sdk-laravel

Composer 安装命令:

composer require pugofka/yametrika-sdk-laravel

包简介

Laravel package for Yandex Metrika SDK

README 文档

README

This is not offical package. Can work with static configuration for one project and with dynamically configuration at runtime for SAAS.

Usage

  1. Create new app link
  2. Set app_id to config
  3. use getAuthTokenLink() for for auth link. Docs for work with Yandex Oauth. Set token for static resource or use this example for set it for dinamyc resources:
use Pugofka\Yametrika\YametrikaClient;

class AwesomeClass {
    
    public function setToken(YametrikaClient $client) 
    {
        $client->setToken('your_token');
    }
}

YametrikaClient class is singleton.

Counters

YametrikaCounters class response for work with counters. getCounters() method return array of counters

Reports

Before use Reports, you should set app_id, token and counter_id.

Ecom report

Get data for ecom reports.

$ecomReport = resolve(\Pugofka\Yametrika\YametrikaEcomReports::class);
$ecomData = $ecomReport->getEcomData(\Carbon\Carbon::today()->subYears(1), \Carbon\Carbon::today(), $limit = 500, $offset = 1);
$ecomSources = $ecomReport->getEcomSourcesReport(\Carbon\Carbon::today()->subWeek(), \Carbon\Carbon::today(), $limit = 500, $offset = 1);

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固