Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Extension for trackEvents() using an MutationObserver. #167

Merged
merged 9 commits into from
May 30, 2020

Conversation

geier1993
Copy link
Contributor

Now dynamically added elements with custom data attributes are also handled.

#160

I tested it with the example. The correct information is pushed to the window._paq queue.

Unfortunately it is not possible for me to add a monorepo with npm to our project (we don't have our own npm registry). We need this feature, but we are thinking about just building are own small utils (i.e. just instantiating a global instance and creating global functions... just enough. But the enableLinkTracking with outBoundClickHandler and custome attribute handling is intereting).

If you think you can help me with merging this feature, that would be great!

@jonkoops jonkoops added the enhancement New feature or request label May 20, 2020
@jonkoops jonkoops linked an issue May 20, 2020 that may be closed by this pull request
@geier1993
Copy link
Contributor Author

I also added trackEvents to the react useMatomo function as it can be savely used now (similar to enableLinkTracking).

Sry messed up that one merge i have issued via github

@jonkoops
Copy link
Owner

@geier1993 Could you allow collaborators on your branch? I would like to make a couple of small changes before merging your PR.

@geier1993
Copy link
Contributor Author

Sry, have no time right now. Added all of you to the collaborators! :)

@chrisvanmook chrisvanmook merged commit 79e9692 into jonkoops:master May 30, 2020
@chrisvanmook
Copy link
Contributor

@geier1993 sorry for the delay! I'm going to publish it asap and let you know when that's done. Thanks for your collaboration! @jonkoops In case you still want to make some changes, let's create another issue for that

@chrisvanmook
Copy link
Contributor

@geier1993 I've published v0.1.5 including your changes

@geier1993
Copy link
Contributor Author

Thank you, sorry for having been a little bit unresponsive. Recently I have too much Todo :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TrackEvents on DOM changes using a MutationObserver
3 participants