Desktop Screen Wdth Based Targeting | Community
Skip to main content
ambikaTewari_ATCI
Community Advisor
Community Advisor
May 27, 2020
Solved

Desktop Screen Wdth Based Targeting

  • May 27, 2020
  • 2 replies
  • 3906 views

Hi Team,

 

I am trying to target users based on screenWidth >1023 px. 

 

I am using Custom --> target-globa-mbox --> screenWidth --> greater then 1023 But I am not qualifying for this audience

I tried using profile script as:

if(mbox.name=="target-global-mbox")
{
var sW= mbox.param('browserWidth');
return sW;
}

 

But trace showing me as blank :

 

I worked with screenOrientation in mid Jan 2020 and that was working for me. But now even screenOrientation is not working for me . Can anybody advise if something has changed ?


Thank you.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ambikaTewari_ATCI

Got to know from help doc that screenWidth is not currently supported for audience creation when using at.js 2.x .

2 replies

ambikaTewari_ATCI
Community Advisor
ambikaTewari_ATCICommunity AdvisorAuthorAccepted solution
Community Advisor
May 27, 2020

Got to know from help doc that screenWidth is not currently supported for audience creation when using at.js 2.x .

Adobe Employee
May 28, 2020

Hi @ambikatewari_atci 

Until this feature is available in 2.x , there is a workaround you can try as

“pass a custom parameter named “browserWidth” set to document.body.offsetWidth”  and then create an audience based on this parameter.

 

Regards,

Skand