-
Notifications
You must be signed in to change notification settings - Fork 5
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
Adding event name in tracking payload overrides all other properties #4
Comments
I encounter some trouble using node client + cloud umami website entry too
I noticed that to retrieve event custom data, the track event must include "data" attribute like: const data = {"color": "red"};
event = {url, title, "name": "button-click", data};
await umamiClient.track(event); (see also gist) suggestion: I would expect a set of tests that ensure node client library quality:
(lets do 1..4 for umami hosted version + 1..4 for umami cloud version) |
After further investigation (I needed to write a Umami client compatible with Unity 3D, so in C#), I found that the function
This is very un-intuitive and this function should be split into two functions instead:
The documentation should be updated with this informations and some clarification should be made on whether or not a page view tracking should precede a event tracking. |
Hi there!
Using this package with Fastify server in Node@20. I'm building all the parameters for tracking my user like this:
This is working just fine, I'm getting all the information in my dashboard. Unfortunately when I add a custom event name, suddenly all the other information are missing, and I get only the event tracking:
umami.track({ hostname, screen: "1920x1080", language, title: `/Home`, url: pathname, referrer, + name: "My event" });
I worked around this issue by calling
track()
twice: once with the generic tracking information and once with my custom event only:I should not be forced to do that, right?
Thanks!
NOTE: I'm importing the Umami class instead of the default import because it doesn't work, I can open another issue if you wish.
The text was updated successfully, but these errors were encountered: