-
Notifications
You must be signed in to change notification settings - Fork 117
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
[Idea] Remove TailwindCSS classes from "class" attribute in ahoy.js #70
Comments
I think you meant to create this issue on https://github.com/ankane/ahoy.js. In any case, you can already do this yourself - you can send whatever data you want to For example, here is a function for your use case, based on the original
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there! Love using ahoy, I think it's a great product. Thanks to all who has worked on it.
I did a quick search through the issues but wasn't able to come up with any relevant questions, so here goes:
Using tailwind CSS adds a lot of classes to our button elements. When I click on a button this is the tracking JSON that gets pushed to ahoy.
Specifically what I am interested in is removing a lot of the cruft that comes along with the
class
attribute.I wonder if we should give people the option to filter out certain classes that provide no value to tracking? In this case I'd want to filter out every class except
custom-class
at the end.So, desired tracking output would be:
Thanks in advance!
The text was updated successfully, but these errors were encountered: