Support multiple Clicky codes; increment version

Clicky has updated their Javascript code to support logging to multiple
sites at the same time.
This commit is contained in:
Joost Cassee 2011-06-05 15:16:33 +02:00
parent 3e5e0c25f2
commit 70ff4f6826
2 changed files with 3 additions and 2 deletions

View file

@ -10,6 +10,6 @@ Django_ project. See the ``docs`` directory for more information.
__author__ = "Joost Cassee"
__email__ = "joost@cassee.net"
__version__ = "0.8.1"
__version__ = "0.8.2"
__copyright__ = "Copyright (C) 2011 Joost Cassee"
__license__ = "MIT License"

View file

@ -17,7 +17,8 @@ SITE_ID_RE = re.compile(r'^\d+$')
TRACKING_CODE = """
<script type="text/javascript">
var clicky = { log: function(){ return; }, goal: function(){ return; }};
var clicky_site_id = %(site_id)s;
var clicky_site_ids = clicky_site_ids || [];
clicky_site_ids.push(%(site_id)s);
var clicky_custom = %(custom)s;
(function() {
var s = document.createElement('script');