Rich-text Reply
Highlighted

Setting up audiences

dianaluo 2w ago
Accepted Solution

Setting up audiences

Hi, one of my customers is trying to instrument a test where they want to target those who have already seen a page earlier in the funnel. How do I create this audience in Optimizely X? 

 

Thanks,

Diana 

Level 2

Re: Setting up audiences

Hi,

 

one idea:

 

Create a cookie or a local storage entry on that page and refer to it in your audience definition. Cookie usage is quite easy and a standard option in audience definitions.

 

Local storage usage may be done by using jQuery. Have a look at this ;-)

https://community.optimizely.com/t5/Using-Optimizely/jQuery-to-build-an-Audience/m-p/23025

 

where @JDahlinANF gave an idea and an example.

 

Kind regards

 

Michael

Kind regards

Michael


   

Re: Setting up audiences

Hi Dianaluo,

 

Depending on what plan you are on this can either be very easy or a little bit hard.

 

Since you are asking the question I am going to assume you don't have the 'Visitor Behaviour' option available within your Audience builder. As described here https://help.optimizely.com/Target_Your_Visitors/Set_up_audiences_in_Optimizely_X%3A_Audience_Builde...

 

This is only available on the Enterprise plan I believe.

 

As CouchPsycho mentioned there are alternatives and custom JS is a great option.

 

I would recommend querying the Optimizely API and the page view object.

 

Steps:

  1. Create an audience using the 'Custom Javascript' drag and drop
  2. Copy/Paste this code into the 'Custom Javascript' box
  3. Update the text (in the code) which says ''your page name here" with the api name of your page
  4. Save it and add it as an audience condition on your experiment

Hopefully that helps and good luck,

 

Will

 

dianaluo 2w ago
 

Re: Setting up audiences

Hi all, thank you both for posting - super helpful!
Level 2