Skip to content

Support data-* attributes. #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JLCarveth opened this issue Feb 5, 2025 · 0 comments
Open

Support data-* attributes. #16

JLCarveth opened this issue Feb 5, 2025 · 0 comments

Comments

@JLCarveth
Copy link

I think this library should support adding data- attributes to elements. For example, to install Plausible Analytics to a website, it requires a <script> tag with a custom data-domain attribute:

```
<script defer data-domain="domain1.com,domain2.com,domain3.com" src="https://plausible.io/js/script.js"></script>
```

I would like to create a PR for this feature if it is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant