Google’s recommendation for placement of their analytics code is to always place it directly above the closing body tag.
However Google does state an exception on the instructions for using the special pdf tracking code:
“Important: if your pages include a call to _trackPageview, _setAllowLinker _trackTrans(), your Analytics tracking code must be placed in your HTML code above any of these calls. In these cases the tracking code can be placed anywhere between the opening <body> tag and the JavaScript call. “
_trackPageviewis a part of the standard Google Analytics code so to use the PDF tracking the analytics code would have to be moved to higher up on the page.
Posted on February 25th, 2009 | filed under Moved to PW | Trackback |