Skip to main content

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.

Source Distribution

django-prodperfect-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

django_prodperfect-0.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file django-prodperfect-0.2.0.tar.gz.

File metadata

  • Download URL: django-prodperfect-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for django-prodperfect-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f9ca2cf7fe7b4127231b110b33db632e3fac616230b95d45999b6ac51aba6a96
MD5 ece7864f2f55db90f29e37af0caf9392
BLAKE2b-256 95b5e2a6070cefc89d7dea912abc5e7e31bda869c04bce075e01adb1b1efb46d

See more details on using hashes here.

File details

Details for the file django_prodperfect-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_prodperfect-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for django_prodperfect-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f31fd781544f614c10c5b96785bdb7faaf7c2993f94dbf309d570692373501
MD5 3896d5479c9e7882cfe79d9edbaf444a
BLAKE2b-256 6836442acadf8ba58923c13463f2f3c47000b27141027994bc2a15e3ca7b486a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page