Advanced Targeting
Advanced Targeting let you target specific groups of users (or custom audience) beyond the regular targeting options. Advanced Targeting can be configured for any experiment through the experimenter UI:
They are:
- Optional - Don't use them unless you need to limit the experiment to specific group of users.
- Specific to a particular application (Not all audiences can target all applications)
- Evaluated on clients via an expression language (
JEXL
)
How to add new Advanced Targeting
Create a PR against targeting/constants.py that adds a new JEXL expression. There is a recorded session showing 2 examples of adding advanced targeting to demoonstrate where to start.
Request review from a console core team member. It should be available in the Experimenter UI a few minutes after the PR has merged.
If you're an iOS or a Android developer check the following instructions for how to add new client-side targeting attributes:
New Advanced Targeting should be tested by the Nimbus QA team before they are used in production. This could involve any or all of the following:
- Test the whole JEXL expression on each application/device it is intended to run on.
- Ask QA to help verify it by creating a dummy experiment.
- Launch an A/A in nightly to see if real users enroll correctly