homepage Welcome to WebmasterWorld Guest from 54.227.56.174
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Page load dependencies by where G Analytics is loaded
Tested to move it from the end of html to the javascript
jetteroheller




msg:3836626
 5:18 pm on Jan 28, 2009 (gmt 0)

I posted here already my experiences with load time optimization.

Google AdSense reports more page impressions
Google Anayltics reports less page impressions

Now I made a further test at 2 small domains.

Google Analytics code by document.write at the end of the javascript loaded by the page.

The result, againg drastic less visits, compared to other statistic sources.

 

jetteroheller




msg:3837289
 12:05 pm on Jan 29, 2009 (gmt 0)

Just have now 1,5 days from 2 small domains with the new method for Google Analytics

old method: insert tracking code as end of html
new method: insert tracking code by document.write in a javascript

Analytics showed much less visitors, but the main proplem seems to be MSIE

The Google Analytics browser stats are

MSIE - 1..27 January: 57,45%
MSIE - 28..29 January: 15,62%

Firefox 1..27 January: 33,81%
Firefox 28..29 January: 81,25%

Any idea, what problem at MSIE could be with

document.write ( "Here goes my Google Analytics Code" );

edzillion




msg:3837467
 4:07 pm on Jan 29, 2009 (gmt 0)

I'm not sure I understand your question. But if the code is at the bottom of the page, there can be incidents where a user comes to your site and then instantly clicks on a link and leaves the page before the analytics code can load. This is solved by putting the code at the top but then the pages load a little slower.

jetteroheller




msg:3837512
 5:00 pm on Jan 29, 2009 (gmt 0)

To make it clear

before

<script=my.js></script>
.....here goes my Google Analytics code
</body>

after

<script=my.js></script>
</body>

javascript file

....here are about 25 kb functions from me....
....at the end...
document.write ( .....here goes my Google Analytics code )

phranque




msg:3837951
 3:12 am on Jan 30, 2009 (gmt 0)

that's because in method one the GA code is processed in line with your document.
(well is does have to fetch an external script first, google-analytics.com/ga.js)

in method two, you must get to the bottom of your document, fetch the my.js, then at the end of fetching and processing that 25kb and doing the document write, you must still do all the work above.

i'm guessing your ff browser is better configured handle simultaneous connections than ie.
also ff might be faster at processing javascript than ie.

jetteroheller




msg:3838024
 6:10 am on Jan 30, 2009 (gmt 0)

i'm guessing your ff browser is better configured handle simultaneous connections than ie.
also ff might be faster at processing javascript than ie.

I would more quess, some mad MSIE security setings on 80% to 90% of MSIE browsers.

A difference loading an javascript from an other domain - google - in the html file or the javascript file.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved