You know, I'll admit, I've had "issues" with GA code as well. Their documentation says to put it at the top of the page, but for page loading reasons, I did exactly as Aran suggests. And everything seems to work fine.
Well, most everything. Actually, there are a couple of nagging things that don't seem to work correctly, and I'm not sure if it's because of my placement of GA.js or if it's just bugs with GA or problems with how I set it up. But anyway, even those nagging problems with GA are non-critical... all the main stuff I need works just fine as Aran suggests. But yeah, this is a confusing topic to get definitive answers on. Ask 10 people and you'll likely get 10 different opinions. --Kyle -------------------------------------------------- From: "Aran Rhee" <[email protected]> Sent: Monday, January 26, 2009 2:59 AM To: <[email protected]> Subject: RE: Added Google Analytics, alternative content flashes on screen > > Where is you GA code? > > The proper place to put all GA includes and code execution is at the very > bottom of the page just before the </body> tag. This way all other code o > the page needed for rendering / display can execute without having to wait > for the response back from the Google servers. > > Just keep in mind that HTML renders in order as it is loaded... > > > Cheers, > Aran > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of saltedherring > Sent: Monday, 26 January 2009 12:17 PM > To: SWFObject > Subject: Added Google Analytics, alternative content flashes on screen > > > Hi, > > I have SWFObject on one of our sites and since adding Google Analytics > JavaScript code to the page there's now a delay and the alternative no- > flash content shows on screen for a split second (maybe longer on > slower machines). Is there some way around this to keep the > alternative stuff hidden until the page is processed or some other > approach maybe? It must be a common problem? > > Any help appreciated, thanks. > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
