Django template tags for the ProdPerfect tracking snippet.
-
pip install django-prodperfect
-
Add to
INSTALLED_APPS
in yoursettings.py
prodperfect,
-
In your templates, load
prodperfect
{% load prodperfect %}
<body>
...
{% tracking_snippet %}
</body>
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
}
}
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
Developed and maintained by prodperfect.