Django admin customization app for django-suit providing google analytics widgets in the admin index
Project description
# django-otto-admin
Django admin customization app for [django-suit](https://github.com/darklow/django-suit)
Would you like to have some google analytics report widgets in your admin index page? Then you're in the right place!
![image](screenshot.png "Image")
## Features
- 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](https://ga-dev-tools.appspot.com/)
- 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
### Configure your analytics widgets
Follow the steps in the Google Identity Platform documentation to [create a service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount) from the [Google Developer Console](https://console.developers.google.com/).
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).
## Requirements
- django-suit
- google-api-python-client
## Getting Started
1. Install django-otto-admin
```
pip install django-otto-admin
```
2. Configure your django-suit installation
3. Add `otto_admin` to your installed apps __before__ `suit`
```
INSTALLED_APPS = (
'otto_admin',
'suit',
'django.contrib.admin',
# ...
```
4. Configure your settings
## Settings configuration
###__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'
Django admin customization app for [django-suit](https://github.com/darklow/django-suit)
Would you like to have some google analytics report widgets in your admin index page? Then you're in the right place!
![image](screenshot.png "Image")
## Features
- 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](https://ga-dev-tools.appspot.com/)
- 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
### Configure your analytics widgets
Follow the steps in the Google Identity Platform documentation to [create a service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount) from the [Google Developer Console](https://console.developers.google.com/).
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).
## Requirements
- django-suit
- google-api-python-client
## Getting Started
1. Install django-otto-admin
```
pip install django-otto-admin
```
2. Configure your django-suit installation
3. Add `otto_admin` to your installed apps __before__ `suit`
```
INSTALLED_APPS = (
'otto_admin',
'suit',
'django.contrib.admin',
# ...
```
4. Configure your settings
## Settings configuration
###__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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-otto-admin-0.1.2.tar.gz
(104.0 kB
view details)
Built Distribution
File details
Details for the file django-otto-admin-0.1.2.tar.gz
.
File metadata
- Download URL: django-otto-admin-0.1.2.tar.gz
- Upload date:
- Size: 104.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b8e7b45ffa2e07bd26eb5864b7389617a78ff1d7675b525e3cf2f0c116385f |
|
MD5 | 6165d046eda7ba4f49386df6ba8a92f6 |
|
BLAKE2b-256 | c7d523a703d004f8a26c81e558ad382aa0a6fcd0554612c52bc94f0c212635b3 |
File details
Details for the file django_otto_admin-0.1.2-py2-none-any.whl
.
File metadata
- Download URL: django_otto_admin-0.1.2-py2-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08674e0945be93efae2c0726e8dab2dbc75456c4466ad8f60f8f5f04dfcaaec7 |
|
MD5 | b9ea773bb89d912c0ef3776e5488bcfb |
|
BLAKE2b-256 | c5103d3f1ddfc247cb333a4212f21d066c635bb778d778ad99713652cb77a60b |