Hacker News new | ask | show | jobs
by Roridge 5628 days ago
Would it be wrong to point out that the missing parts of the source for w3fools.com ? Or observing that placement of things like the google analytics code at the bottom, instead of the head?

Or would that make me pedantic?

1 comments

Regarding the placement of GA, this is intentional. You don't want to count a visit before the page has actually been displayed to the user.
Actually the modern GA way is using the async javascript the snippit for which goes before the </head> but hey W3Fools wasn't about being accurate... oh wait, it was.

http://code.google.com/intl/en-GB/apis/analytics/docs/tracki...