matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.86k stars 2.65k forks source link

How do I track which visits have Javascript enabled/disabled? #10509

Open claudioschneider opened 8 years ago

claudioschneider commented 8 years ago

is there any possiblity to find out if the visitor of my website has enabled or disabled javascript?

thanks in advance!

cheers

mackieee commented 8 years ago

Edit: After a little more googling around; A <noscript> method: http://piwik.org/faq/how-to/#faq_176 that I never knew of! I found this through the Piwik forums, there's a lot more resources there to help you with your answer.

As the server side has way of knowing (Browser setting and not included in the HTTP Headers) and of course, if it was Client side and it was disabled; no chance :)

As a possible workaround, If you were to use Piwik's PHP Server side tracking method; send a Custom variable along with each request to specify if JavaScript is enabled or not. By default it's not; however once the user arrives on the site and sends a successful dummy AJAX Call - you know it's enabled for the request of the session.

claudioschneider commented 8 years ago

Thank you for your detailed answer. That should help me :)

Cheers

mattab commented 7 years ago

It is possible to track JavaScript usage with Piwik using the following technique:

if you use this technique let us know how it goes!

(leaving ticket opened as we could maybe move this into a FAQ or feature it as a useful custom dimension)

claudioschneider commented 7 years ago

Hi

I've made it on the same way ;) And it works :)

Thanks for your answer.

Cheers

On 12 Nov 2016, at 08:47, Matthieu Aubry notifications@github.com<mailto:notifications@github.com> wrote:

It is possible to track JavaScript usage with Piwik using the following technique:

if you use this technique let us know how it goes!

(leaving ticket opened as we could maybe move this into a FAQ or feature it as a useful custom dimension)

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/piwik/piwik/issues/10509#issuecomment-260107899, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AP5Km0l8hj8vVhM--Z9nY9o4rTPI7tAsks5q9W8cgaJpZM4J-rxW.