Desktop Screen Wdth Based Targeting

Avatar

Avatar
Give Back 5
Level 4
LordOfTheRings
Level 4

Likes

66 likes

Total Posts

128 posts

Correct reply

24 solutions
Top badges earned
Give Back 5
Validate 10
Validate 1
Contributor
Shape 1
View profile

Avatar
Give Back 5
Level 4
LordOfTheRings
Level 4

Likes

66 likes

Total Posts

128 posts

Correct reply

24 solutions
Top badges earned
Give Back 5
Validate 10
Validate 1
Contributor
Shape 1
View profile
LordOfTheRings
Level 4

26-05-2020

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 :

LordOfTheRings_0-1590559212546.png

 

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.

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Level 4
LordOfTheRings
Level 4

Likes

66 likes

Total Posts

128 posts

Correct reply

24 solutions
Top badges earned
Give Back 5
Validate 10
Validate 1
Contributor
Shape 1
View profile

Avatar
Give Back 5
Level 4
LordOfTheRings
Level 4

Likes

66 likes

Total Posts

128 posts

Correct reply

24 solutions
Top badges earned
Give Back 5
Validate 10
Validate 1
Contributor
Shape 1
View profile
LordOfTheRings
Level 4

27-05-2020

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

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Level 2
skand
Level 2

Likes

9 likes

Total Posts

8 posts

Correct reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 2
skand
Level 2

Likes

9 likes

Total Posts

8 posts

Correct reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
skand
Level 2

28-05-2020

Hi @LordOfTheRings 

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