Closed TheIronMarx closed 5 years ago
Hi @TheIronMarx,
yes you are correct. That should be changed to also allow matomo.php
. There was a ticket in this regard but it got closed.
I will accept PR's that change this. In the meantime you can simply change your baseURL to end on piwik.php
instead of matomo.php
. Both are supported.
Yeah I see that! Whew. I'll get to the PR later this week.
Hopefully.
In the mean time, opinions on changing the assertion to a print out to the console?
I don't think there is a reason to use a URL other than ending in either matomo.php
or piwik.php
or am I missing something here?
Changing it to just a log makes it far easier missable. If one misses that there is just no data in the backend at all. Having an assertion here will probably save many developers time debugging and me quite a bit time supporting.
Unless there is a strong reason to remove the assertion I guess I would keep it.
Alright. I suppose that's much more your call than mine. I'll include both in the PR.
Oh man, super sorry about that. I already implemented the changes but never merged them. There is an open PR in this regard: #286. Looks like my brain isn't fully booted for the start of the week.
I just merged that PR. It will be part of the next release.
Thank you!
As of Matomo SDK 6, the first line of the convenience initializer is the following assertion.
On top of being out of date and incorrect, it seems like a really needless enforcement. At worst, maybe a warning or some other nonblocking logs to the console. Furthermore, this is immediately stopping me from continuing as our baseURL does not conclude with
piwik.php
butmatomo.php
.Thoughts?