Environment
Target
Issue/Symptoms
Scenario: I have created an experiment, where I want to target only specific browser widths. However, I don’t see any traffic hitting my experiment.
But, when I used the Adobe Analytics, traffic did hit the page with this experiment that would have met the audience setting.
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
, something like:
window.targetPageParamsAll = function () {
return (
browserWidth: document.documentElement.clientWidth;
);
}