SWFObject and Google Analytics
Just a quick note: I’ve posted two new SWFObject examples: Embedding a SWF then displaying markup to copy, and Wrapping Google Analytics Code in a DomReady event.
I wanted to point out that the code for wrapping Google Analytics code in a domready event is not actually SWFObject-specific; it just happens to be an issue a lot of SWFObject users have complained about over the last couple of years. My example includes a SWF, but the code is usable in any webpage. I highly recommend it (or your own home-brewed variation of it) simply because it moves Google’s <script> element out of your markup and into the <head> where it belongs. Progressive enhancement FTW!
Want a gravatar? They're easy and free! Just sign up at gravatar.com
Add your two cents!