lotharthesavior / livewire-hubspot
Livewire Hubspot 跟踪代码
1.0.0
2022-11-08 18:26 UTC
Requires
- laravel/framework: ^8.12|^9.0
- livewire/livewire: ^2.8
README
此包安装了带有 Hubspot 跟踪代码 和 访客识别 支持的。
安装
- 安装 composer 包
composer require lotharthesavior/livewire-hubspot
- 安装配置文件
php artisan vendor:publish --tag=livewire-hubspot-config
- 将其添加到模板中
对于登录后的所有模板
@livewire('hubspot-tracking-code', [ [ 'team' => auth()->user()->currentTeam->name, 'firstname' => auth()->user()->name, 'phone' => auth()->user()->currentTeam->phone, ], ])
对于登录外的所有模板
@livewire('hubspot-tracking-code')
待办事项
- 添加测试