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:
Just looking for some examples of profile scripts that would support the above sequuence.
Thank you very much in advance,
Alex
Solved! Go to Solution.
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.
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.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
I tried what you explained and worked, but I'm having a problem with var freq.
Every time I change of page or refresh the one I'm using, freq get modified by 7 instead of by 1, even though I wrote the same code as you.
Do you know what could been happening?
Thanks a lot
Views
Replies
Total Likes
Hi @alexe58360872, I have tried but the count freq is not increased. do you have any idea?
Views
Replies
Total Likes
Views
Like
Replies