Is it wise to use the noscript tag for tracking visitors who have javascript disabled, since noscript is deprecated?

StackOverflow https://stackoverflow.com/questions/17829671

Question

Piwik (open source web analytics) uses javascript to track visitors. However, for visitors who have javascript disabled they suggest using the <noscript> tag:

When a visitor has disabled JavaScript, or when JavaScript cannot be used, you can use an image tracking link to track visitors. Generate the link below and copy-paste the generated HTML in the page. If you're using this as a fallback for JavaScript tracking, you can surround it in <noscript></noscript> tags.

Using a js vs no-js class on the body isn't really an option, since that would not be able to prevent the image from loading. So the noscript tag seems like my only option, but will it work as expected since it is deprecated?

Was it helpful?

Solution

Visitors that have JavaScript disabled means practically:

  1. Screen readers for blind people - I don't see a reason they should download images
  2. Some bored admin viewing page with text-mode browser - no images downloaded as well
  3. Google BOT or some other bot crawling pages - they would do with the links what they want, for example ignore it
  4. Scripts writing the page for offline usage, that would save the image or not, depending on the settings (in most cases not)

The only place where such image-tracking could have work are the HTML mail messages, but such images are normally blocked, or you could fall under spam filter.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top