Skip to content

Conversation

@pedrocarmona
Copy link

Hi @ankane,

Yet another way to allow custom properties on events.

Usage:

import "ahoy"

function otherEventProperties(element, event) {
  return {
    test: "here"
  };
}

ahoy.trackClicks("a, button", otherEventProperties);

Notice:
Internal functions of ahoy are not exposed, so not possible to use getClosest(), page(), presence(), etc.

@pedrocarmona
Copy link
Author

Could also remove visitParams and have a default hook for $view...

@bborn
Copy link

bborn commented Dec 18, 2024

👍 on this. @ankane any thoughts on merging this in?

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

Successfully merging this pull request may close these issues.

2 participants