]> git.parisson.com Git - django-google-tools.git/commit
Better GA init code
authorChris Adams <chris.adams@nasa.gov>
Wed, 2 Dec 2009 22:47:08 +0000 (06:47 +0800)
committerClint Ecker <clint@arstechnica.com>
Fri, 4 Dec 2009 22:08:45 +0000 (06:08 +0800)
commitef5d5096a6b1e30be26bbc26eb6caee02822992c
tree1f12c8ab6b89d7a60dfa7ed0013677a96ce5ccaa
parent047bd723a23f019e45aaca432bacde06c13aabee
Better GA init code

The official version fails if the document's first child is something
like a comment. This tries to attach to <head> and, if that doesn't
exist, falls back to body.
google_analytics/templates/google_analytics/analytics_template.html