{"repo":"RealOrangeOne/django-plausible","free":true,"listed":false,"github":"https://github.com/RealOrangeOne/django-plausible","clone":"git clone https://github.com/RealOrangeOne/django-plausible.git","description":"Django module to provide easy Plausible integration, with Wagtail support","language":"Python","stars":18,"topics":["django","plausible","analytics"],"license":"BSD-3-Clause","category":"analytics","readme_excerpt":"django-plausible Django module to provide easy Plausible integration, with Wagtail support. Installation Then simply add plausible to INSTALLED APPS . Usage django-plausible provides a plausible template tag, which can be used to output the required script tag for Plausible. Will result in: Configuration Configuration can be changed either in settings.py , or when calling the plausible template tag: - PLAUSIBLE DOMAIN : The domain Plausible is running on (defaults to plausible.io ) - PLAUSIBLE SCRIPT NAME : The name of the script to use (defaults to plausible.js ). See script extensions for available options. These settings will affect all calls to the plausible template tag. To override it at call time, you can also pass them into the template tag: By default, the domain ( data-domain ) used will be based on the request's hostname (using request.get host() ). To override this, pass site domain to the template tag. If the \"compat\" script is used, django-plausible will automatically add the required id to the script tag. It is excluded by default to help hide Plausible's presence. Usage with Wagtail Additionally, django-plausible provides an (optional) deep integration with Wagtail, allowing configuration through the Wagtail admin. To enable this, additionally add plausible.contrib.wagtail to INSTALLED APPS . Configuration is done through the \"Plausible Analytics\" setting: - site domain : the value for data-domain . If left blank (the default), the request's hostname will be u","default_branch":null,"files":null,"tree":[],"storefront":"/r/RealOrangeOne","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RealOrangeOne/django-plausible/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}