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!
- locales: en, it
- custom copyright string
- custom developed by string and url
- custom support mailto
- admin index with google analytics panel implemented through analytics embed API
- Realtime active users
- Traffic (sessions and users), last 15 days
- Popular Page views, last 15 days
- Top Browsers, last 15 days
- Referral traffic, last 15 days
- Visitors Countries, last 15 days
- Social actions, last 15 days
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).
pip install django-otto-admin
Configure your django-suit installation
otto_adminto your installed apps before
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 'email@example.com'
###OA_POWERED_BY Powered by string, default 'Otto srl'
###OA_POWERED_BY_URL Powered by url, default 'http://www.otto.to.it'