Audience Parameters_Browser and/or Screen Widths not working

Description description

Environment

Adobe Target

Issue/Symptoms

On creating an experiment where you wanted to target only specific browser widths, you didn’t see any traffic hitting the experiment.

However, when Adobe Analytics was used, you saw that traffic did hit the page with this experiment and that would have met the audience setting.

Resolution resolution

This is a known functionality when using at.js 2.x as mentioned here.

Workaround:

The simplest way is to leverage window.targetPageParamsAll and add a piece of JavaScript right before at.js, such as:

window.targetPageParamsAll = function () {

  return (

     browserWidth: document.documentElement.clientWidth;

 );

}
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f