lotharthesavior / livewire-hubspot
Livewire Hubspot Tracking Code
Installs: 324
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/lotharthesavior/livewire-hubspot
Requires
- laravel/framework: ^8.12|^9.0
- livewire/livewire: ^2.8
README
This package installs Hubspot Tracking Code with Visitor Identification support.
Installation
- Install composer package:
composer require lotharthesavior/livewire-hubspot
- Install configuration file:
php artisan vendor:publish --tag=livewire-hubspot-config
- Add it to your template:
For templates behind login all
@livewire('hubspot-tracking-code', [ [ 'team' => auth()->user()->currentTeam->name, 'firstname' => auth()->user()->name, 'phone' => auth()->user()->currentTeam->phone, ], ])
For templates outside login all
@livewire('hubspot-tracking-code')
Todo
- Add tests