Closed VamsiDevalla closed 5 years ago
Hello,
Thanks for the bug report. I checked my code and I made the same mistake at least at one other place. I'm going to recheck the whole code and provide a fix.
I gave a PR for this issue if you wanted to merge
Thanks for the bug report and the PR!
This bug, and several similar ones have been fixed in release 0.1.3.
When using the trackSiteSearch method, If we pass ) the method won't add search count to matomo url because of the inner logic:
The logic used is:
In the above code, if condition never gets satisfied when resultsCount is 0 beacuse:
So you can use some thing like:
I have created a pull request for this: Here