Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Create audience from page parameter, recreate browserWidth

Avatar

Avatar
Validate 1
Level 1
jenk
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
jenk
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
jenk
Level 1

01-09-2020

Hi 

 

After upgrading Adobe Target to version 2.3 we no longer have access to 'browserWidth' which we used to create an audience. So i read that i had to setup a page parameter in Adobe Launch, where i passed 'window.innerWidth' to Target. In the debugger extension i can see that under the "execute" parameter the value is {"pageLoad":{"parameters":{"windowInnerWidth":"window.innerWidth"}}}. In Target i tried to create an audience where i used this parameter, but it does not seem to work. Any pointers would be helpful. 

audience launch Target

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Level 4
LordOfTheRings
Level 4

Likes

59 likes

Total Posts

123 posts

Correct Reply

21 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

59 likes

Total Posts

123 posts

Correct Reply

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

03-09-2020

hi @jenk 

1. Create data element  (type=custom code) and return value as return document.body.offsetWidth ;

2. use this data element to pass in target image request

OR

1. USe custom code as:

window.targetPageParamsAll = function()
{
var newVal ="";
var browserWidth=document.body.offsetWidth;


newVal = newVal+"&browserWidth=" +browserWidth;
return newVal;
}

3. You should get the param in target image request.

 

Please try this and let me know how it goes for you.

Answers (0)