May 22, 2017, 11:19am
Hello everybody ,
I am using piwik to track some events on my website .
i used to track click on links so i added something like this :
The script looks like that :
Its working on FireFox and all events are tracked , but i still getting no information when i use Chrome .
I dont have any errors in my logs/console .
The DoNotTrack is desabled .
I dont have any ip excusion .
Any idea about that please :).
May 22, 2017, 11:41am
onclick shouldn’t need a
javacript: part, but only the function. So you should be able to write
<a href="LInkHere" onclick="pushToPaqService('Service', 'LINK');">the link</a>
I am not sure if this is the cause of your problem.
May 22, 2017, 12:32pm
Thank you for the reply .
I dont think that this is the cause .
The function pushToPaqService is executed successfully , but i dont see results on my dashboard .
May 22, 2017, 12:37pm
It should look similar to
May 22, 2017, 1:26pm
i found that the http request wasn’t sent .
May 22, 2017, 2:43pm
Only in Chrome or also in other browsers?
At least this means that the piwik server backend isn’t at fault.
Anothing you can test: Add an link with “#” as href:
<a href="#" onclick="pushToPaqService('Service', 'LINK');">the link</a>
Maybe the function doesn’t get executed correctly as the browser has already left the page before the request can be made.
May 22, 2017, 4:09pm
Its solved ,
It was only on Chrome , i deleted all cookies and cash from chrome, i disactivated a proxy that existed , an i found that in some elements i used onclick not onClick .
Thank you for your help