Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Commit 93e7b7f

Browse files
committed
fixup! Add documentation for 0.1.9 (#27)
1 parent 57877f1 commit 93e7b7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ MIDDLEWARE = [
3636

3737
## Getting started
3838

39-
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 for that experiment is 1 which is the experiment variant with the alias "new_design" that you created. Note: The experiment cookie only works in DEBUG mode and is used to avoid interacting with the session and testing the experiment variants via the Django admin.
39+
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.
4040

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

@@ -55,6 +55,8 @@ Or use it inline:
5555
{% if request.google_optimize.redesign == "new_design" %} navbar-redesign{% endif %}">
5656
```
5757

58+
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 via the Django admin.
59+
5860
Full documentation [can be found here.](https://django-google-optimize.readthedocs.io/en/latest/)
5961

6062
## Documentation and Support

0 commit comments

Comments
 (0)