Auto add to audience using query string parameter
I have created an audience using php wrapper class. I am not able to add that audience to any experiment from class.
I have created audience using qyery parameter. If that query condition matches then will it add visitor that audience or I must assign it to an experiment
Also how I can know number of visitors in a particular audience
If I understand your question correctly, you are correct, you can create an audience via our REST API, but you cannot assign that audience to an experiment using that same endpoint. You'd want to use our update experiments endpoint do so.
If you want to see how many visitors have qualified for an audience, you'll want to turn segmentation on for that audience. Then run an A/A test across your entire site for some amount of time, and then you can filter the Results Page for that segmented audience.
Did I provide some helpful information?
Solutions Architect | Optimizely, Inc.