활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
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
해결되었습니다! 솔루션으로 이동.
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.
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
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
조회 수
답글
좋아요 수
Hi @alexe58360872, I have tried but the count freq is not increased. do you have any idea?
조회 수
답글
좋아요 수