Add <script> to each page of a panel?
Hi there,
I'm curious, what would be the best way to add external scripts (i.e. analytics, chat widgets) to each page of the panel?
Solution:Jump to solution
I figured it out! Thanks for the suggestion @Tieme. I added this to my panel provider. The view referenced has the
<script>
tag provided by the service. Here is the code:
```php
FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,...2 Replies
Solution
I figured it out! Thanks for the suggestion @Tieme. I added this to my panel provider. The view referenced has the
<script>
tag provided by the service. Here is the code: