Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Django admin customization app for django-suit providing google analytics widgets in the admin index
Django admin customization app for django-suit
Would you like to have some google analytics report widgets in your admin index page? Then you're in the right place!
Follow the steps in the Google Identity Platform documentation to create a service account from the Google Developer Console.
Once the service account is created, you can click the Generate New JSON Key button to create and download the key and add it to your project.
Add the service account as a user in Google Analytics. The service account you created in the previous step has an email address that you can add to any of the Google Analytics views you'd like to request data from. It's generally best to only grant the service account read-only access.
Then you will need to configure otto_admin with the json path and the view ID (continue reading).
Install django-otto-admin
pip install django-otto-admin
Configure your django-suit installation
Add otto_admin
to your installed apps before suit
INSTALLED_APPS = (
'otto_admin',
'suit',
'django.contrib.admin',
# ...
Configure your settings
###OA_ANALYTICS_CREDENTIALS_JSON (required) full path to the json key file of your app service account
###OA_ANALYTICS_VIEW_ID (required) id of the analytics view you want to show in the admin index
###OA_COPYRIGHT Copyright string, default '2015 Otto srl'
###OA_SUPPORT_EMAIL Mailto support email, default 'mail@otto.to.it'
###OA_POWERED_BY Powered by string, default 'Otto srl'
###OA_POWERED_BY_URL Powered by url, default 'http://www.otto.to.it'
FAQs
Django admin customization app for django-suit providing google analytics widgets in the admin index
We found that django-otto-admin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.