mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Update Clickmap integration and changelog
This commit is contained in:
parent
5dacedf9a4
commit
b5b4716db8
4 changed files with 4 additions and 19 deletions
|
|
@ -1,7 +1,7 @@
|
|||
The django-analytical package was written by `Joost Cassee`_, with
|
||||
contributions from `Eric Davis`_, `Paul Oswald`_, `Uros Trebec`_,
|
||||
`Steven Skoczen`_, `Piet Delport`_, `Sandra Mau`_, `Simon Ye`_,
|
||||
`Tinnet Coronam`_ and others.
|
||||
`Tinnet Coronam`_, `Philippe O. Wagner`_ and others.
|
||||
|
||||
Included Javascript code snippets for integration of the analytics
|
||||
services were written by the respective service providers.
|
||||
|
|
@ -20,6 +20,6 @@ The work on Crazy Egg was made possible by `Bateau Knowledge`_.
|
|||
.. _`Sandra Mau`: https://github.com/xthepoet
|
||||
.. _`Simon Ye`: https://github.com/yesimon
|
||||
.. _`Tinnet Coronam`: https://github.com/tinnet
|
||||
.. _`Philippe O. Wagner`: mailto:admin@arteria.ch
|
||||
.. _Analytical: https://github.com/jkrall/analytical
|
||||
.. _`Bateau Knowledge`: http://www.bateauknowledge.nl/
|
||||
.. _`arteria GmbH`: mailto:admin@arteria.ch
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ Version 0.15.0
|
|||
--------------
|
||||
* Add IP anonymization setting to GA tracking pixel (Tinnet Coronam)
|
||||
* Include Django 1.5 in tox.ini (Tinnet Coronam)
|
||||
* Add Clickmap integration (Philippe O. Wagner)
|
||||
|
||||
Version 0.14.0
|
||||
--------------
|
||||
|
|
|
|||
|
|
@ -51,22 +51,6 @@ class ClickmapNode(Node):
|
|||
"must be a (string containing) a number")
|
||||
|
||||
def render(self, context):
|
||||
"""custom = {}
|
||||
for dict_ in context:
|
||||
for var, val in dict_.items():
|
||||
if var.startswith('clickmap_'):
|
||||
custom[var[7:]] = val
|
||||
if 'username' not in custom.get('session', {}):
|
||||
identity = get_identity(context, 'clickmap')
|
||||
if identity is not None:
|
||||
custom.setdefault('session', {})['username'] = identity
|
||||
|
||||
html = TRACKING_CODE % {'site_id': self.site_id,
|
||||
'custom': simplejson.dumps(custom)}
|
||||
if is_internal_ip(context, 'CLICKMAP'):
|
||||
html = disable_html(html, 'clickmap')
|
||||
return html
|
||||
"""
|
||||
html = TRACKING_CODE % {'portal_id': self.portal_id,
|
||||
'domain': self.domain}
|
||||
if is_internal_ip(context, 'CLICKMAP'):
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from django.contrib.auth.models import User, AnonymousUser
|
|||
from django.http import HttpRequest
|
||||
from django.template import Context
|
||||
|
||||
from analytical.templatetags.clicky import ClickmapNode
|
||||
from analytical.templatetags.clickmap import ClickmapNode
|
||||
from analytical.tests.utils import TagTestCase, override_settings, SETTING_DELETED
|
||||
from analytical.utils import AnalyticalException
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue