lotharthesavior/livewire-hubspot

Livewire Hubspot 跟踪代码

1.0.0 2022-11-08 18:26 UTC

This package is auto-updated.

Last update: 2024-09-08 22:26:52 UTC


README

此包安装了带有 Hubspot 跟踪代码访客识别 支持的。

安装

  1. 安装 composer 包
composer require lotharthesavior/livewire-hubspot
  1. 安装配置文件
php artisan vendor:publish --tag=livewire-hubspot-config
  1. 将其添加到模板中

对于登录后的所有模板

@livewire('hubspot-tracking-code', [
    [
        'team' => auth()->user()->currentTeam->name,
        'firstname' => auth()->user()->name,
        'phone' => auth()->user()->currentTeam->phone,
    ],
])

对于登录外的所有模板

@livewire('hubspot-tracking-code')

待办事项

  • 添加测试