Profile Scripts - How to create audiences based on new and returning visitors

Avatar

Avatar
Give Back
Level 2
alexe58360872
Level 2

Likes

6 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
alexe58360872
Level 2

Likes

6 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile
alexe58360872
Level 2

02-06-2020

Good Afternoon,

Hope everyone is safe and healthy.  

Our team is looking to set up a test on our homepage banner property. To do this we believe we will need to create a profile script in Target. The audiences would be as follows:

 

  • 1st visit: Support Message (COVID messaging)
  • 2nd visit: D2D Message
  • 3rd visit: Support Message (COVID messaging)
  • 4th visit: D2D Message

Just looking for some examples of profile scripts that would support the above sequuence.

Thank you very much in advance,

Alex

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

02-06-2020

Hi @alexe58360872  you can create a profile script as below :

 

Name : Impression

Code :

var freq = user.get("Impression") || 0;
freq+=1;
if (freq < 100)
{
return freq;
}

Now you can create an audience as Visitor Profile ---> user.Impression ---> contains static value ---> 1,3 ---> for Covid Message
Visitor Profile ---> user.Impression ---> contains static value ---> 2,4 ---> for D2D Message

Hope that helps you.

Answers (0)