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.1.0rc1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_prodperfect-0.1.0rc1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file django-prodperfect-0.1.0rc1.tar.gz.

File metadata

  • Download URL: django-prodperfect-0.1.0rc1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for django-prodperfect-0.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 04daf860f6b0f48518298e25013149532993d2030234bf506f37e6635b2a1527
MD5 0b7285a285b485200eb38b905e49f7cc
BLAKE2b-256 c2544ed4f6934532cf2ff111fe7b77d55ec3663be550594adc1a6710b2ede4bc

See more details on using hashes here.

File details

Details for the file django_prodperfect-0.1.0rc1-py3-none-any.whl.

File metadata

  • Download URL: django_prodperfect-0.1.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for django_prodperfect-0.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fd4fbf6ebbb9cd68647d2f3bc0ef7ae884bd00a922634149d69e994e3c2f138
MD5 bf8ff913e2e7eed5118607835b1482c6
BLAKE2b-256 233d8a73efb26960dcc9dc1e622f64aef29d269bcc63b006ded4eba5cba5accf

See more details on using hashes here.

Supported by

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