@tsteur opened this Issue on February 13th 2016 Owner

Since #9341 we recommend to put the tracking code into <head>. However, it is not valid HTML (which might be important to quite a few users) and not even sure if the noscript would actually work.

See https://github.com/piwik/piwik/issues/9341#issuecomment-180231930 and https://github.com/piwik/piwik/issues/9341#issuecomment-183718593

Maybe we could mention to put the <noscript> element into <body>

@braiam commented on January 28th 2017

It's valid on HTML 5:

4.11.2 The noscript element
Contexts in which this element can be used:
In a head element of an HTML document, if there are no ancestor noscript elements.

The invalid html is including the p tag in the head which we may want to include it at the bottom of the body element.

Powered by GitHub Issue Mirror