So your challenge is when the rule trigger, it will be helpful if you can share the event and/or condition of the rule. Also, as mentioned for the first page and another page, is your website an ordinary page-based website, or a single page application?
Just a side note that for action, it is better...