Skip to content
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] Extra attributes on clicks #82

Open
pedrocarmona opened this issue Mar 27, 2024 · 1 comment
Open

[Idea] Extra attributes on clicks #82

pedrocarmona opened this issue Mar 27, 2024 · 1 comment

Comments

@pedrocarmona
Copy link

Allow setting extra attributes to clicks via data html attributes.

<a href="/profiles/1" id="profile_link" data-ab-test="green_button">Profile</a>

Would send abTest: "green_button" to ahoy_events table.

https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes

@pedrocarmona
Copy link
Author

Allows adding multiple attributes to the event via html, like:

  • record id,
  • relationship/parent/nested record id
  • trackid (custom id of object)

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