ikuzostudio/matomo-plugin
最新稳定版本:v1.1
Composer 安装命令:
composer require ikuzostudio/matomo-plugin
包简介
Integrate Matomo ecommerce tracking into Sylius.
README 文档
README
Matomo Plugin
Integrate Matomo ecommerce tracking into Sylius.
/!\ Currently in alpha /!\
Quickstart
$ composer require ikuzostudio/matomo-plugin
Add plugin dependencies to your config/bundles.php file:
return [ // ... Ikuzo\SyliusMatomoPlugin\IkuzoSyliusMatomoPlugin::class => ['all' => true], ];
Import required config in your config/packages/_sylius.yaml file:
# config/packages/_sylius.yaml imports: ... - { resource: "@IkuzoSyliusMatomoPlugin/Resources/config/app/config.yaml"}
Extend your Channel entity
// [...] use Sylius\Component\Core\Model\Channel as BaseChannel; use Ikuzo\SyliusMatomoPlugin\Model\MatomoChannelInterface; use Ikuzo\SyliusMatomoPlugin\Model\MatomoChannelTrait; /** * @ORM\Table(name="sylius_channel") * @ORM\Entity() */ class Channel extends BaseChannel implements MatomoChannelInterface { use MatomoChannelTrait; }
Update your database
$ bin/console doctrine:schema:update --force
Then configure your credentials from channel form
统计信息
- 总下载量: 530
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-23
