All Projects → adinhodovic → django-google-optimize

adinhodovic / django-google-optimize

Licence: MIT license
Django-google-optimize is a Django application designed to make running server side Google Optimize A/B tests easy.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to django-google-optimize

featurehub
FeatureHub - cloud native feature flags, A/B testing and remote configuration service. Real-time streaming feature updates. Provided with Java, JavaScript, Go, .Net, Android and Flutter SDKs.
Stars: ✭ 136 (+267.57%)
Mutual labels:  a-b-testing, a-b-test
django-admin-confirm
AdminConfirmMixin is a mixin for ModelAdmin that adds confirmations to changes, additions and actions.
Stars: ✭ 34 (-8.11%)
Mutual labels:  django-admin
django-admin-extra-urls
Single mixin class to easily add buttons on any Django ModelAdmin related page
Stars: ✭ 26 (-29.73%)
Mutual labels:  django-admin
django-yaaac
Ajax Autocomplete Django application
Stars: ✭ 13 (-64.86%)
Mutual labels:  django-admin
djadmin
Djadmin is a django admin theme
Stars: ✭ 42 (+13.51%)
Mutual labels:  django-admin
django-learning-pathway
(Currently in development) Learning pathways for learning Django.
Stars: ✭ 35 (-5.41%)
Mutual labels:  django-admin
Django Flat Responsive
📱 An extension for Django admin that makes interface mobile-friendly. Merged into Django 2.0
Stars: ✭ 249 (+572.97%)
Mutual labels:  django-admin
Wysiwyg.ABTesting
A/B Testing Package for Neos
Stars: ✭ 16 (-56.76%)
Mutual labels:  a-b-testing
django-admin-charts
Create beautiful configurable charts from your models and display them on the django-admin index page or on django-admin-tools dashboard. The charts are based on models and criterias defined through admin interface and some chart parameters are configurable in live view.
Stars: ✭ 78 (+110.81%)
Mutual labels:  django-admin
django-code-generator
Generate code from your Django models for faster development
Stars: ✭ 35 (-5.41%)
Mutual labels:  django-admin
django-sqlalchemy
Django ORM built on top of SQLalchemy core 2.0 for seamless integration of SQLAlchemy with Django 4.1+ PostgreSQL 14+ only for now. [pre POC now]
Stars: ✭ 101 (+172.97%)
Mutual labels:  django-admin
django-clone
Controlled Django model instance replication.
Stars: ✭ 89 (+140.54%)
Mutual labels:  django-admin
django-quill
Easily use Quill.js in your django admin.
Stars: ✭ 54 (+45.95%)
Mutual labels:  django-admin
django-admin-search
Modal filter for django admin
Stars: ✭ 60 (+62.16%)
Mutual labels:  django-admin
django admin chart js
An example repo showing how to add Chart.js to Django admin
Stars: ✭ 35 (-5.41%)
Mutual labels:  django-admin
Django Practice Book
《Django企业开发实战》已出版
Stars: ✭ 251 (+578.38%)
Mutual labels:  django-admin
django-export-action
Generic export action for Django's Admin
Stars: ✭ 47 (+27.03%)
Mutual labels:  django-admin
django-admin-shell
Django/Python shell for django admin site.
Stars: ✭ 62 (+67.57%)
Mutual labels:  django-admin
django-admin-autocomplete-list-filter
Ajax autocomplete list filter for Django admin
Stars: ✭ 68 (+83.78%)
Mutual labels:  django-admin
django-lock-tokens
A Django application that provides a locking mechanism to prevent concurrency editing.
Stars: ✭ 19 (-48.65%)
Mutual labels:  django-admin

Django-google-optimize

Lint Test Coverage Supported Python versions PyPI Version

Django-google-optimize is a Django application designed to make running Google Optimize A/B tests easy.

Here is a tutorial on the Google Optimize basics and how to use this Django application.

Installation

Install django-google-optimize with pip:

pip install django-google-optimize

Add the application to installed Django applications:

# settings.py
INSTALLED_APPS = [
    ...
    "django_google_optimize",
    ...
]

Add the middleware:

MIDDLEWARE = [
    ...
    "django_google_optimize.middleware.google_optimize",
    ...
]

Getting started

Head over to the Django admin and add a new Google Optimize experiment. Add an experiment variant with the index 1 and the alias "new_design". Set the experiment cookie's active variant index to 1. Now the active variant index for that experiment is 1 which is the experiment variant with the alias "new_design" that you created.

Now you can access the experiment in templates by the experiment alias and the variant alias:

{% if request.google_optimize.redesign == "new_design" %}
{% include "jobs/jobposting_list_new.html" %}
{% else %}
{% include "jobs/jobposting_list_old.html" %}
{% endif %}

Or use it inline:

<nav class="navbar navbar-expand-lg navbar-dark
{% if request.google_optimize.redesign == "new_design" %} navbar-redesign{% endif %}">

Note: The experiment cookie only works in DEBUG mode and is used to avoid interacting with the session to add the _gaexp cookie making it possible to test the experiment variants through the Django admin.

Full documentation can be found here.

Documentation and Support

More documentation can be found in the docs directory or read online. Open a Github issue for support.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].