Trigger a Tag on a Specific Day Only Once per Day

Hi everyone,

I’m trying to set up a tag (for a pop-up) that should trigger only on Tuesdays when a user visits a specific page (/pageB). The goal is for the tag to fire just once per user per Tuesday—so if they visit /pageB multiple times that day, it won’t trigger again until the following Tuesday.

Here’s how I’ve set it up so far:

  1. Custom JS Variable (popupDay):

    javascript
    

    Copy

    function() {
      return new Date().getDay(); // Returns 0 (Sunday) to 6 (Saturday)
    }
    

    This correctly identifies Tuesday as 2.

  2. Trigger Conditions:

    • Page URL contains /pageB

    • AND popupDay equals 2

    This part works fine—the tag fires when both conditions are met.

  3. Multiplicity Settings:
    To ensure the tag fires only once per day, I configured:

    • Multiplicity: “Once in a session”

    • Idle time before the session closes: 1440 minutes (24 hours)

Problem: The tag doesn’t fire at all now—not even once. When I check the pageView event, the View within session variable always shows a value greater than 0 (e.g., 0.484), which seems to conflict with the session logic.

Question: How can I ensure the tag fires once per Tuesday (and only on Tuesdays) without breaking the trigger entirely? Am I missing something in the session or multiplicity settings?

Thanks in advance for your help!

Hi! Where exactly did you change the “Idle time before the session closes” setting?

When you select “once per session”, it shows the field (see screenshot)

Thanks, I think this approach can generate some incorrect and misleading data, especially for people who come back after a couple of hours.

One solution I can think of is creating a cookie that, let’s say, expires at midnight the same day, and based on this cookie you can decide whether to show the popup.

Someone enters for the first time this day → the popup trigger checks for the cookie → it’s not there → you show up the popup and create the cookie. The next time someone enters, the cookie will be detected and the popup won’t trigger. The cookie expires at midnight, so if they come back the next Tuesday, they will see the popup again.

Hello @sararekowska , it’s what I finally did and it works.

I was wondering if there is another more “native” solution, but it seems no.

thks for your feedback :slight_smile: