mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-05-04 13:44:42 +00:00
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:
parent
3e5e0c25f2
commit
70ff4f6826
2 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,6 @@ Django_ project. See the ``docs`` directory for more information.
|
||||||
|
|
||||||
__author__ = "Joost Cassee"
|
__author__ = "Joost Cassee"
|
||||||
__email__ = "joost@cassee.net"
|
__email__ = "joost@cassee.net"
|
||||||
__version__ = "0.8.1"
|
__version__ = "0.8.2"
|
||||||
__copyright__ = "Copyright (C) 2011 Joost Cassee"
|
__copyright__ = "Copyright (C) 2011 Joost Cassee"
|
||||||
__license__ = "MIT License"
|
__license__ = "MIT License"
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,8 @@ SITE_ID_RE = re.compile(r'^\d+$')
|
||||||
TRACKING_CODE = """
|
TRACKING_CODE = """
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var clicky = { log: function(){ return; }, goal: function(){ return; }};
|
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;
|
var clicky_custom = %(custom)s;
|
||||||
(function() {
|
(function() {
|
||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue