Skip to content

Allow override eventProperties#449

Closed
dmitriy-kiriyenko wants to merge 1 commit into
ankane:masterfrom
dmitriy-kiriyenko:allow-override-event-properties
Closed

Allow override eventProperties#449
dmitriy-kiriyenko wants to merge 1 commit into
ankane:masterfrom
dmitriy-kiriyenko:allow-override-event-properties

Conversation

@dmitriy-kiriyenko
Copy link
Copy Markdown

@dmitriy-kiriyenko dmitriy-kiriyenko commented Jun 18, 2020

For my particular case I need to pull off the element more properties than pulled by default (id, className, section). To be more precise, I want to pull whole dataset.

The most straightforward way to do so is overriding eventProperties, which is used in trackClicks, trackSubmits and trackChanges.

However in its current state I can override trackClick and others, but that would be too much of a monkey patch.

I believe making eventProperties overridable won't hurt anyone and will improve the options to customize events data.

@dmitriy-kiriyenko dmitriy-kiriyenko force-pushed the allow-override-event-properties branch 2 times, most recently from 921dde7 to d3590e7 Compare June 18, 2020 10:00
For my particular case I need to pull off the element more properties
than pulled by default (`id`, `className`, `section`). To be more
precise, I want to pull whole `dataset`.

The most straightforward way to do so is overriding `eventProperties`,
which is used in `trackClicks`, `trackSubmits` and `trackChanges`.

However in its current state I can override `trackClick` and others,
but that would be too much of a monkey patch.

I believe making `eventProperties` overridable won't hurt anyone and will
improve the options to customize events data.
@dmitriy-kiriyenko dmitriy-kiriyenko force-pushed the allow-override-event-properties branch from d3590e7 to c572de6 Compare June 18, 2020 10:01
@danielrsmith
Copy link
Copy Markdown

👍

@dmitriy-kiriyenko
Copy link
Copy Markdown
Author

@ankane any thoughts on this?

@dmitriy-kiriyenko
Copy link
Copy Markdown
Author

@ankane is there a chance I will get any news on this?

@ankane
Copy link
Copy Markdown
Owner

ankane commented Oct 6, 2020

Let's discuss here: ankane/ahoy.js#55

@ankane ankane closed this Oct 6, 2020
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.

3 participants