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

"url" prop of tracker function should be marked as required in docs #3262

Open
amxmln opened this issue Feb 22, 2025 · 0 comments
Open

"url" prop of tracker function should be marked as required in docs #3262

amxmln opened this issue Feb 22, 2025 · 0 comments

Comments

@amxmln
Copy link

amxmln commented Feb 22, 2025

Describe the Bug

Hi there!

While implementing event tracking and stripping out a lot of data from events today, I noticed I was getting 400 Bad Request errors when sending events like this:

window.umami.track((props) => ({ name: 'My Event', website: props.website }));

I had assumed that only the website prop was required, as that is the only one marked as such in the Docs for the tracker function. It seems however, that the url prop is required as well, as adding that would make the server accept the request.

If that is the correct behaviour and the url prop is indeed needed to track events, it should be marked as required in the docs.

Thank you for keeping up the development of Umami.

Database

MySQL

Relevant log output

Which Umami version are you using? (if relevant)

v2.16.1

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

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