Thanks for reply. Below is error log lines
[
connect() to unix:/run/php/php7.1-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client.
]
Now I restarted fpm and I can access admin interface. Also regular matomo tracking code is working, please find the below url, it gives status 200 :
But when I click on play button with onclick="_paq.push([‘trackEvent’, ‘Video Content’, ‘Play’, ‘Video Title’]);" it again gives 400 Bad request.
My understanding is trackEvent is a matomo (in-built) function, I need not to define this function. Please suggest if there is another way to track click based events.
Hi,
Now I’m getting 502 Bad Gateway error for all the requests. Even I cannot log into matomo interface. It display login screen and dashboard. But as soon as I click on any link it gives 502 Bad Gateway error and then I’m unable to access the page.
Hi
I have resolved 502 Bad Gateway error now.
Kindly suggest on onclick="_paq.push([‘trackEvent’, ‘Video Content’, ‘Play’, ‘Video Title’]);"
issue. Why this trackEvent is not working.
My understanding is trackEvent is a matomo (in-built) function, I need not to define this function. Please suggest if there is another way to track click based events.
Sometimes the obvious is overlooked for the simple reason that it is obvious. So, please allow me to ask whether the _paq array has been properly defined in your Matomo source code at the bottom of your webpage.
A bad request is often caused by a faulty query string. I have checked your formatting and found nothing wrong with it except, of course, the value of the &url parameter.
This said, if formatting is not a problem, then it might be that you are sending a parameter or even several parameters that Matomo does not know who to handle for the type of request being sent. Your parameter list appears very long, and I cannot help, but think that you are sending parameters that are either unnecessary for your counting objective or even wrong.
Alternatively the value of a parameter or several parameters could be mis-specified.
Finally, could it be that you have not installed the plug-in necessary to handle the type of request being sent?
If I were in your position, I would strip the list to its bare minimum and determine whether it works. If the bare minimum works, then the problem is with your query string. If the bare minimum does not work, then the problem likely lies beyond Matomo.
Roddy
p.s. Make sure that your HTTPRequest is not sent until the _paq variable is completely loaded. I place my Matomo script at the bottom of my page.
Hi,
Thanks for your reply.
In my opinion these query parameters are by default added by matomo script for when we use onclick="_paq.push([‘trackEvent’, ‘Video Content’, ‘Play’, ‘Video Title’]);"
url parameter, I have updated to hide page url.
Can you suggest what plugins need to be installed to use trackEvent in matomo.
Hi!
i am confront with same problem, but i used c# client for my app.
Did anybody resolve this issue?
I have almost equal request (but after both not view data on dasboard)
ok request:
What i am doing wrong?
matomo backend version: latest (3.8.1) enterprise
I use c# client https://github.com/matomo-org/piwik-dotnet-tracker
i don’t have acess on backend logs
P.S.: sorry for my bad english, but i really need done this task
Thank you so much… I searched for more than an hour. After reading your post I realized that I created a user, created a token and did not assign the right project to that user.