]> git.parisson.com Git - django-google-tools.git/commit
Make new asynchronous google analytics optional.
authorJ. Cliff Dyer <jcdyer@aalcdl07.(none)>
Wed, 2 Dec 2009 22:07:09 +0000 (17:07 -0500)
committerJ. Cliff Dyer <jcdyer@aalcdl07.(none)>
Wed, 2 Dec 2009 22:07:09 +0000 (17:07 -0500)
commit06a9c4160507af05f8ae9da8833db451c40b315b
treedcf73b857cf7ee487c227e6d52f664b8909184d6
parentff09c682ba1d4199df4273ae43e2f44197448f15
Make new asynchronous google analytics optional.

The Asynchronous tracking snippet is not exactly a drop it replacement for the old
synchronous tracking snippet.  It is intended to go at a different place in the template,
and it doesn't work with some documents (see README.mdown for details).  Therefore, it
makes sense for it to be rendered using a different template tag.  It could have been an
option passed to the template tag, but template tags should be simple to use, and simple
to parse.
README.mdown
google_analytics/templates/google_analytics/analytics_async_template.html [new file with mode: 0644]
google_analytics/templates/google_analytics/analytics_template.html
google_analytics/templatetags/analytics.py