[Bug/Feature Request]: support for Plausible custom script ID? #14

Closed
opened 2026-01-29 15:04:58 +00:00 by ChrisHardie · 0 comments
ChrisHardie commented 2026-01-29 15:04:58 +00:00 (Migrated from github.com)

What happened?

This package is great, thank you for making it! Plausible's script installation instructions currently suggest the use of a custom script ID, e.g. https://plausible.io/js/pa-12345ABCDE.js. I believe this is a part of support for their optional measurements such as outbound link clicks. Right now the package hardcodes a reference to https://plausible.io/js/script.js in fetching the script for caching.

Would you consider allowing a new .env option that allows specifying the script URI, and/or perhaps just replace the existing .env that specifies the domain to fetch the script with the full script URL?

How to reproduce the bug

When I want to track outbound link clicks, the Plausible script fetched by the package does not provide support for that.

Package Version

1.5

PHP Version

8.4

Laravel Version

12

Which operating systems does this happen with?

No response

Notes

No response

### What happened? This package is great, thank you for making it! Plausible's script installation instructions currently suggest the use of a custom script ID, e.g. `https://plausible.io/js/pa-12345ABCDE.js`. I believe this is a part of support for their optional measurements such as outbound link clicks. Right now the package hardcodes a reference to `https://plausible.io/js/script.js` in fetching the script for caching. Would you consider allowing a new .env option that allows specifying the script URI, and/or perhaps just replace the existing .env that specifies the domain to fetch the script with the full script URL? ### How to reproduce the bug When I want to track outbound link clicks, the Plausible script fetched by the package does not provide support for that. ### Package Version 1.5 ### PHP Version 8.4 ### Laravel Version 12 ### Which operating systems does this happen with? _No response_ ### Notes _No response_
Sign in to join this conversation.