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:
-
Custom JS Variable (
popupDay):javascriptCopy
function() { return new Date().getDay(); // Returns 0 (Sunday) to 6 (Saturday) }This correctly identifies Tuesday as
2. -
Trigger Conditions:
-
Page URL contains /pageB -
AND popupDay equals 2
This part works fine—the tag fires when both conditions are met.
-
-
Multiplicity Settings:
To ensure the tag fires only once per day, I configured:-
Multiplicity: “Once in a session”
-
Idle time before the session closes:
1440minutes (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!
