Dynamic Selectors in Optimizely X
Thank you for reaching out to the Optiverse Community!
You can use the same method as mentioned in the article this still works the same in Optimizely X.
The variation code in Optimizely X is called: Variation Code Editor.
This can be found when you open one of your variations in the Visual Editor and then select the icon next to the URL.
I hope this help!
Technical Support Engineer