Django template tags for ProdPerfect tracking snippet
Project description
django-prodperfect
Django template tags for the ProdPerfect tracking snippet.
Installation
-
pip install django-prodperfect
-
Add to
INSTALLED_APPS
in yoursettings.py
prodperfect,
-
In your templates, load
prodperfect
Example template
{% load prodperfect %}
<body>
...
{% tracking_snippet %}
</body>
Example settings.py
You can copy these values from the ProdPerfect provided tracking snippet.
PRODPERFECT = {
'HOST': 'prodperfect.datapipe.prodperfect.com/v1',
'WRITE_KEY': '12345',
'PROJECT_ID': '12345',
'TRACKING_LIBRARY_URL': 'https://prodperfect.trackinglibrary.prodperfect.com/keen-tracking.min.js'
}
To override the default tracking behavior, you can change the value of the following properties.
PRODPERFECT = {
# ...
'OPTIONS': {
'ignoreDisabledFormFields': False,
'recordClicks': True,
'recordFormSubmits': True,
'recordInputChanges': True,
'recordPageViews': True,
'recordPageUnloads': True,
'recordScrollState': True
}
}
Bugs and suggestions
If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.
https://github.com/prodperfect/django-prodperfect/issues
Author
Developed and maintained by prodperfect.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-prodperfect-0.1.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11b3d9bcbcaf493c6dd8bf396562909b6e1f6d5a89a13d8674e32cf4a97f47bd |
|
MD5 | e4decfa47b211dadc31fc1d3d4b3556f |
|
BLAKE2b-256 | c3ebfd27fc7cdf303189dea15455834a30f03bf8d93c71ac0163da0c4f2e0b0c |
Close
Hashes for django_prodperfect-0.1.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c941b07ce950b93e278041dccc57d3b8497e1952ed65005ebdce98fa2e38106d |
|
MD5 | d42a85ad7d18f5a2ed00361ea45c0dae |
|
BLAKE2b-256 | 2d858d2bcd614a28a827596756bdfa3644c66deba4566b5772c22d51d02e37a4 |