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

How to know if site ID or auth token are incorrect #127

Open
acelaya opened this issue Nov 21, 2023 · 1 comment
Open

How to know if site ID or auth token are incorrect #127

acelaya opened this issue Nov 21, 2023 · 1 comment

Comments

@acelaya
Copy link

acelaya commented Nov 21, 2023

I have been testing this SDK and in general it works well. However, I haven't found a way to tell if incorrect values were set for the site ID or auth token, as the response to $tracker->doTrackPageView(...) is always the same.

I have noticed the visit is not tracked by the server if any of those values is wrong (let's say you have a typo n the auth token, or the site ID is not known by Matomo server), but the method does not throw any exception or return a different result, so it could pass unnoticed for some time.

@mattvb91
Copy link

mattvb91 commented Dec 7, 2023

How do you even know what your site id is? Mine is a string? But in your linked issue you have an int? Where can I find the site it?

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

2 participants