Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
filament-hotjar-development
jeffersongoncalves/filament-hotjar
claude-code
filament-plugin
hotjar
analytics
settings-page
script-injection
tracking-code

Build and work with the Filament Hotjar plugin — Hotjar settings page, head script injection and site ID management in Filament panels.

Install
php artisan boost:add-skill jeffersongoncalves/filament-hotjar

Save this content to: .claude/skills/filament-hotjar-development/SKILL.md

# Filament Hotjar Development

## When to use this skill

Use this skill when:
- Adding or changing the Hotjar integration of a Filament panel
- Customizing the Hotjar settings page
- Debugging missing Hotjar tracking code in a panel

## Package Overview

- **Package**: `jeffersongoncalves/filament-hotjar` (branch `3.x` for Filament 5.x)
- **Namespace**: `JeffersonGoncalves\Filament\Hotjar`
- **Dependencies**: `jeffersongoncalves/filament-analytics-core:^3.0`, `jeffersongoncalves/laravel-hotjar:^1.0`
- **Service Provider**: `JeffersonGoncalves\Filament\Hotjar\HotjarServiceProvider`

## Version Compatibility

| Branch | Filament | PHP |
|--------|----------|-----|
| 1.x | 3.x | ^8.2 |
| 2.x | 4.x | ^8.2 |
| 3.x | 5.x | ^8.2 |

## Setup

```php
use JeffersonGoncalves\Filament\Hotjar\HotjarPlugin;

$panel->plugins([
    HotjarPlugin::make(),                        // settings page + script injection
    // HotjarPlugin::make()->settingsPage(false), // script injection only
]);
```

```bash
php artisan vendor:publish --tag=hotjar-settings-migrations
php artisan migrate
```

## Settings Fields

| Field | Type | Description |
|-------|------|-------------|
| `site_id` | TextInput (digits) | Hotjar Site ID; empty disables tracking |
| `version` | TextInput (integer) | Tracking snippet version (`hjsv`), default 6 |

## Troubleshooting

- **Script missing**: check `site_id` is saved and `HotjarServiceProvider` is discovered; the `hotjar::script` view comes from `laravel-hotjar`.
- **Settings page errors**: the `hotjar` settings group is missing — publish and run the migrations.

Filament Hotjar Development

When to use this skill

Use this skill when:

  • Adding or changing the Hotjar integration of a Filament panel
  • Customizing the Hotjar settings page
  • Debugging missing Hotjar tracking code in a panel

Package Overview

  • Package: jeffersongoncalves/filament-hotjar (branch 3.x for Filament 5.x)
  • Namespace: JeffersonGoncalves\Filament\Hotjar
  • Dependencies: jeffersongoncalves/filament-analytics-core:^3.0, jeffersongoncalves/laravel-hotjar:^1.0
  • Service Provider: JeffersonGoncalves\Filament\Hotjar\HotjarServiceProvider

Version Compatibility

Branch Filament PHP
1.x 3.x ^8.2
2.x 4.x ^8.2
3.x 5.x ^8.2

Setup

use JeffersonGoncalves\Filament\Hotjar\HotjarPlugin;

$panel->plugins([
    HotjarPlugin::make(),                        // settings page + script injection
    // HotjarPlugin::make()->settingsPage(false), // script injection only
]);
php artisan vendor:publish --tag=hotjar-settings-migrations
php artisan migrate

Settings Fields

Field Type Description
site_id TextInput (digits) Hotjar Site ID; empty disables tracking
version TextInput (integer) Tracking snippet version (hjsv), default 6

Troubleshooting

  • Script missing: check site_id is saved and HotjarServiceProvider is discovered; the hotjar::script view comes from laravel-hotjar.
  • Settings page errors: the hotjar settings group is missing — publish and run the migrations.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle