PHP rest api set dimension value
I am using optimizely and it is working as expected if I use JS API. Now, I want some functionality as mentiond below using PHP REST API
1.Creating a custom dimension
2.Creating audience with Segmentation yes with condition of above mentioned custom dimension has particular value
3.I want to set that particular value to custome dimension using PHP REST API not using by putting JS snippet with setDimension Value
Let me know among above mentiond requirement I know #1 is posible what about other two
How about this API endpoint to trigger the second step in your request: http://developers.optimizely.com/rest/reference/in
3. Will be harder, and I don't have experience doing it like that with the JS API in mind as well. But hopefully somebody from Optimizely will jump in to help with this.
Thanks for contributing to the Optiverse! I'm Becca Bruggman a Solutions Architect at Optimizely and wanted to jump in to offer some guidance around the REST API functaionality. Thanks @Martjnsch for providing your help here
1. You're correct. You can create a custom dimension through the REST API, documentation [here]
2. Turning on segmentation for this audience is also possible as "conditions" and "segmentation" are both editable fields when creating an audience through our REST API, documentation [here]
Did I explain the above well? Did I understand your thurd question correctly?
Thanks for your response.
You can see all the possibilities for working with dimensions via the Optimizely REST API here: http://developers.optimizely.com/rest/reference/in
I will also note, while you can build out the your experiment set-up with the Optimizely REST API, you will still need to include the Optimizely snippet on each page you are wanting to run these tests on your website, make visual changes to your website and track the behavior of your visitors within these experiments.
Hope that helped clarify the answers I had provided. Did you have any follow-up questions?
Thanks for reply.
Got my concern? if so then let me know is it possible
Unfortunately you cannot set the value using the Rest API. In fact, the Rest API does not allow you to do anything at the user level. Is there a reason that you don't want to use JS to set the dimension value?
I'm sorry if this causes any inconvenience. Let me know if this clears things up for you.