Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Django template tags for ProdPerfect tracking snippet

Project description

django-prodperfect

Django template tags for the ProdPerfect tracking snippet.

Installation

  1. pip install django-prodperfect

  2. Add to INSTALLED_APPS in your settings.py

    prodperfect,

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-prodperfect, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django_prodperfect-0.2.0-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-prodperfect-0.2.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page