Forum Moderators: DixonJones

Message Too Old, No Replies

Goog Analytics Question?

Code is placed in footer and anaylitics is giving footer as top page

         

steaprok

2:04 pm on Apr 8, 2007 (gmt 0)

10+ Year Member



Per the Google rep instructions, we placed the tracking code, in the footer since it is an includes file.

Now when we read the stats, it shows footer.html as th top page, as the top entrance, top content, top everything. Im concerned this is throwing everything off. That becuase of this that I cant really see whats working and whats not.

Any help with this would be greatly appreciated.

Thanks,

shahab

5:53 pm on Apr 8, 2007 (gmt 0)

10+ Year Member



Don't put Google Analytics tracking code in an iframe,
Instead try to embed it to your page by including the footer too all of your pages.
On MS Windows,
You can do it by using SSI (server side includes) or seting a permanent footer for all pages through IIS.

abbeyvet

7:31 pm on Apr 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you say the footer is a .html file, is it a full html page? With a <head></head> and a <body></body> section?

I ask because I have seen people include these before - somehow browsers manage to display the page in spite of the bizarre sequencing in the code that results. But Analytics might just be reading it as another page.

How are you including the page?

cgrantski

12:32 pm on Apr 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



An analytics program (GA, others) will interpret a request for a file with the .html extension as a request for a page, and count it in the pages reports. You could either move the tag into the .html file that you want to be counted as a page, or include the footer without having it be an html file.