Skip to content

Commit 514780a

Browse files
committed
Add documentation for Lucky Orange
1 parent 7f1358d commit 514780a

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed

README.rst

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Currently Supported Services
6262
* `Intercom`_ live chat and support
6363
* `KISSinsights`_ feedback surveys
6464
* `KISSmetrics`_ funnel analysis
65+
* `Lucky Orange`_ analytics and user feedback
6566
* `Mixpanel`_ event tracking
6667
* `Olark`_ visitor chat
6768
* `Optimizely`_ A/B testing
@@ -87,6 +88,7 @@ Currently Supported Services
8788
.. _`Intercom`: http://www.intercom.io/
8889
.. _`KISSinsights`: http://www.kissinsights.com/
8990
.. _`KISSmetrics`: http://www.kissmetrics.com/
91+
.. _`Lucky Orange`: http://www.luckyorange.com/
9092
.. _`Mixpanel`: http://www.mixpanel.com/
9193
.. _`Olark`: http://www.olark.com/
9294
.. _`Optimizely`: http://www.optimizely.com/

docs/install.rst

+4
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ settings required to enable each service are listed here:
163163

164164
KISS_METRICS_API_KEY = '0123456789abcdef0123456789abcdef01234567'
165165

166+
* :doc:`Lucky Orange <services/luckyorange>`::
167+
168+
LUCKYORANGE_SITE_ID = '123456'
169+
166170
* :doc:`Matomo (formerly Piwik) <services/matomo>`::
167171

168172
MATOMO_DOMAIN_PATH = 'your.matomo.server/optional/path'

docs/services/luckyorange.rst

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
==================================================
2+
Lucky Orange -- All-in-one conversion optimization
3+
==================================================
4+
5+
`Lucky Orange`_ is a website analytics and user feedback tool.
6+
7+
.. _`Lucky Orange`: https://www.luckyorange.com/
8+
9+
10+
.. luckyorange-installation:
11+
12+
Installation
13+
============
14+
15+
To start using the Lucky Orange integration, you must have installed the
16+
django-analytical package and have added the ``analytical`` application
17+
to :const:`INSTALLED_APPS` in your project :file:`settings.py` file.
18+
See :doc:`../install` for details.
19+
20+
Next you need to add the Lucky Orange template tag to your templates.
21+
This step is only needed if you are not using the generic
22+
:ttag:`analytical.*` tags. If you are, skip to
23+
:ref:`luckyorange-configuration`.
24+
25+
The Lucky Orange tracking code is inserted into templates using template
26+
tags. Because every page that you want to track must have the tag, it
27+
is useful to add it to your base template. At the top of the template,
28+
load the :mod:`luckyorange` template tag library. Then insert the
29+
:ttag:`luckyorange` tag at the bottom of the head section::
30+
31+
{% load luckyorange %}
32+
<html>
33+
<head>
34+
...
35+
{% luckyorange %}
36+
</head>
37+
...
38+
</html>
39+
40+
41+
.. _luckyorange-configuration:
42+
43+
Configuration
44+
=============
45+
46+
Before you can use the Lucky Orange integration, you must first set your
47+
Site ID.
48+
49+
50+
.. _luckyorange-id:
51+
52+
Setting the Lucky Orange Site ID
53+
--------------------------------
54+
55+
You can find the Lucky Orange Site ID in the "Settings" of your Lucky
56+
Orange account, reachable via the gear icon on the top right corner.
57+
Set :const:`LUCKYORANGE_SITE_ID` in the project :file:`settings.py` file::
58+
59+
LUCKYORANGE_SITE_ID = 'XXXXXX'
60+
61+
If you do not set a Lucky Orange Site ID, the code will not be rendered.
62+
63+
64+
.. _luckyorange-internal-ips:
65+
66+
Internal IP addresses
67+
---------------------
68+
69+
Usually you do not want to track clicks from your development or
70+
internal IP addresses. By default, if the tags detect that the client
71+
comes from any address in the :const:`LUCKYORANGE_INTERNAL_IPS`
72+
setting, the tracking code is commented out. It takes the value of
73+
:const:`ANALYTICAL_INTERNAL_IPS` by default (which in turn is
74+
:const:`INTERNAL_IPS` by default). See :ref:`identifying-visitors` for
75+
important information about detecting the visitor IP address.

0 commit comments

Comments
 (0)