Expand my Community achievements bar.

SOLVED

Profile script needed to deliver activity only once per day

Avatar

Level 4

Hello,

I'm looking to deliver a Target activity to users but only once per day. It is a pop up modal that users can exit out, I have it set that they will only see the experience one time ever on first page visit. I'm wondering if anyone has a profile script that can be used to say "deliver activity once per day"? 

1 Accepted Solution

Avatar

Correct answer by
Level 2

@ben_mrm 

You could do this in your activity rather than a profile script using a cookie with an explicit expiration to accomplish this.

Basically, in your activity code set or check for the cookie when the experience loads and if it exists do nothing. If the cookie has not been set, then run your popup code and set the cookie.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

@ben_mrm 

You could do this in your activity rather than a profile script using a cookie with an explicit expiration to accomplish this.

Basically, in your activity code set or check for the cookie when the experience loads and if it exists do nothing. If the cookie has not been set, then run your popup code and set the cookie.