Configuration
Use case configuration Flagship side
In this section, we will guide you from the Flagship platform, to create a use case, define its KPI, its flags, and its criteria of targeting. Learn more
It can be done in 6 steps:
1. Create a toggle use case in Flagship
1. Create a toggle use case in Flagship
From the Flagship platform, we create a feature toggle with the name Login with Google and we define 3 KPI, submit-basic-login to capture the number of times a basic login is used, click-google-login and click-wechat-login. Learn more
![ezgif.com-gif-maker (1).gif 805](https://files.readme.io/bd75537-ezgif.com-gif-maker_1.gif)
define kpis
2. Set up your flags
2. Set up your flags
We define 3 flags, login-btn-color, login-with-google and login-with-wechat.
![capture2.png 1645](https://files.readme.io/d35479d-capture2.png)
define flags
3. Define your scenarios
3. Define your scenarios
Here we define the value of each flags will have according to geographic zone of visitor
![capture3.png 746](https://files.readme.io/c882302-capture3.png)
define scenarios
4. Set up your targeting criteria for each scenario
4. Set up your targeting criteria for each scenario
The targeting criteria will be like this:
- Scenario 1: will concern only users who are in Europe/America zone
- Scenario 2: for Asia geographic zone
- Scenario 3: for users who are outside of Europe/America and Asia zone
![capture4.png 2332](https://files.readme.io/c158b5f-capture4.png)
define targetings
5. Switch on your use case
5. Switch on your use case
Now your use case is created, the last step is to switch it on
![CPT2111091428-1422x266.gif 1422](https://files.readme.io/42ba1a4-CPT2111091428-1422x266.gif)
switch on your use case
6. Get your API_KEY and ENV_ID
6. Get your API_KEY and ENV_ID
![CPT2111241422-1661x841.gif 1661](https://files.readme.io/96acde6-CPT2111241422-1661x841.gif)
get api configuration
Updated about 1 year ago