You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 5, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ MIDDLEWARE = [
36
36
37
37
## Getting started
38
38
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.
40
40
41
41
Now you can access the experiment in templates by the experiment alias and the variant alias:
42
42
@@ -55,6 +55,8 @@ Or use it inline:
55
55
{% if request.google_optimize.redesign == "new_design" %} navbar-redesign{% endif %}">
56
56
```
57
57
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
+
58
60
Full documentation [can be found here.](https://django-google-optimize.readthedocs.io/en/latest/)
0 commit comments