GithubHelp home page GithubHelp logo

realorangeone / django-plausible Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 2.0 54 KB

Django module to provide easy Plausible integration, with Wagtail support

Home Page: https://pypi.org/project/django-plausible/

License: BSD 3-Clause "New" or "Revised" License

Shell 1.68% Python 97.83% HTML 0.50%
analytics django plausible

django-plausible's Introduction

:octocat: More repos: git.theorangeone.net

๐Ÿ“ Notes: notes.theorangeone.net

๐Ÿ‘‹ Say "Hi" or "Thanks"!

:shipit:

Recent posts

๐ŸŒ View more: theorangeone.net/posts

Recent notes

โœ๏ธ View more: notes.theorangeone.net

django-plausible's People

Contributors

mheppner avatar realorangeone avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-plausible's Issues

Feature: Make configurable plausible URL (not just the domain)

I have install plausible plugin to my wagtail site and try to configure it. But in the admin panel I can only configure plausible domain without protocol scheme (http/https).

If I specify protocol in this field I have scripts src like "https://http://mydomain". It will be great possibility to specify full URL to plausible instance with the protocol (http/https)

It works well when I specify http in script manually (without plugins), so I think will be great also to have possibility configure script with http with plugin

Some additional info: in the template tag (django-plausible/plausible/templatetags/plausible.py) https scheme is hardcoded

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • actions/setup-python v4
  • actions/cache v3
.github/workflows/deploy.yml
  • actions/checkout v3
  • actions/setup-python v4
pip_requirements
dev-requirements.txt
  • ruff ==0.0.256
  • mypy ==1.1.1
  • black ==22.10.0
  • pytest ==7.2.2
  • pytest-django ==4.5.2
  • pytest-cov ==4.0.0
pip_setup
setup.py
  • Django >=3.2
  • wagtail >=2.13

  • Check this box to trigger a request for Renovate to run again on this repository

deep integration wagtail?

Your doc page says, but what is meant with "deep" ?

Additionally, django-plausible provides an (optional) deep integration with Wagtail,

Wagtail integration missing

After installing this package and adding plausible.contrib.wagtail to INSTALLED_APPS, I'm getting an error: ModuleNotFoundError: No module named 'plausible.contrib'.

In a clean virtual environment, this is what the package from pypi looks like:

python3.9 -m venv venv
source venv/bin/activate
pip install django-plausible

cd venv/lib/python3.9/site-packages
find ./plausible -print
./plausible
./plausible/templatetags
./plausible/templatetags/plausible.py
./plausible/templatetags/__init__.py
./plausible/templatetags/__pycache__
./plausible/templatetags/__pycache__/__init__.cpython-39.pyc
./plausible/templatetags/__pycache__/plausible.cpython-39.pyc
./plausible/__init__.py
./plausible/__pycache__
./plausible/__pycache__/__init__.cpython-39.pyc
./plausible/py.typed

The contrib/wagtail folder is missing. Same thing if you download the .tar.gz from pypi. I also tried with pip install django-plausible[wagtail] which results in the same package contents, but with wagtail installed too.

feature stats in wagtail admin

It would be realy nice to add feature so you can see some stats in the admin. Example how many page visits etc... That would be a great boost to use Plausible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.