- Optimizely Web Experimentation
- Optimizely Personalization
- Optimizely Performance Edge
- Optimizely Feature Experimentation
- Optimizely Full Stack (Legacy)
Using the Optimizely Experimentation or Optimizely Personalization REST APIs requires access to various IDs.
For example, masking descriptive names in Optimizely Web Experimentation, Optimizely Performance Edge, or Optimizely Personalization prevents you from seeing the name of a variation or campaign in the web console. Instead, the JavaScript API, console log, and network panel return a masked identifier: a string of numbers. This is great for privacy, but challenging to troubleshoot.
Based on what type of project you have, you can use the API Names or API Values tab to find the following:
- Account ID (for the specific experiment or campaign)
- Experiment or Campaign IDs
- Variation IDs
- Audience IDs
- Page IDs
- Event IDs
- Project IDs
- Flag IDs
- Rule IDs
- Environment keys
The experiment ID and variation IDs generated by Optimizely are 16-digit numbers. This can potentially cause issues with analytics integrations that might misinterpret these IDs as credit card numbers, resulting in data being flagged or removed.
To prevent this, consider incorporating a letter prefix or using a combination of name and ID (for example expID(expName)
or varID(varName)
) in your integration configuration. Adjustments may be necessary for custom integrations to ensure data is captured correctly.
Optimizely Web Experimentation, Optimizely Performance Edge, and Optimizely Personalization
- Go to your Optimizely Web Experimentation, Optimizely Performance Edge, and Optimizely Personalization project.
- Select your experiment or campaign.
- Select the API Names tab.
The API Names tab contains various unique identifiers that you can use with Optimizely Web Experimentation/Optimizely Personalization APIs and Optimizely Performance Edge APIs.
Optimizely Full Stack (Legacy)
- Go to your Optimizely Full Stack (Legacy) project.
- Select your A/B Experiment, Feature Test, or Multi-armed Bandit.
- Select the API Names tab.
The API Names tab contains various unique identifiers, such as the Account ID, Project ID, and Experiment ID, that you can use with Optimizely Full Stack (Legacy) APIs and SDKs.
Optimizely Feature Experimentation
- Go to your Optimizely Feature Experimentation project.
- Select a flag.
- Select the API Values tab.
- Select the Environment and Rule for which you want to view the ID and Key.
This page contains various unique identifiers and keys for your flag and rules that you can use with the Optimizely Feature Experimentation APIs and SDKs.
At least one rule must be added to an environment for it to display on the API Values tab. If no rules are added, the following message displays: No rules found for this environment, please select another environment.
Please sign in to leave a comment.