Profile script needed to deliver activity only once per day | Community
Skip to main content
Level 3
December 16, 2021
Solved

Profile script needed to deliver activity only once per day

  • December 16, 2021
  • 1 reply
  • 837 views

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"? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by targetDev404

@benmu6 

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.

1 reply

targetDev404
targetDev404Accepted solution
Level 2
January 7, 2022

@benmu6 

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.