CSS Selector for Enters Viewport | Community
Skip to main content
Level 2
August 27, 2025
Question

CSS Selector for Enters Viewport

  • August 27, 2025
  • 1 reply
  • 906 views

Hello Adobe Experts,

I hope everyone is doing well.

 

I would like to get your insights regarding the usage of Enters Viewport. Currently, it is working perfectly for my implementation, but it turns out that when I go back to the previous CTAs, the rule is no longer firing.

 

Steps:
I clicked the CTA 1 and the rule with "Enters Viewport" fires

I clicked the CTA 2 and the rule with "Enters Viewport" fires

I go back to the CTA 1, but the rule is no longer firing.

 

Sample web appearance:

Sample Rule setup:

 

Question:

From this release note, it seems like enter viewport would only trigger once time per page, but I am just wondering if someone has a way to retrigger the rule when I go back to CTA 1?

https://experienceleague.adobe.com/en/docs/experience-platform/tags/extensions/client/core/release-notes

 

 

Thank you in advance.

 

 

1 reply

EurosIMS
Level 3
August 27, 2025

Hi @herder,

You say 'click the CTAs', so is there a reason why you are using Enters Viewport instead of the Click/Mousedown events? 

HerderAuthor
Level 2
August 27, 2025

Hello @eurosims,

Thanks for your reply.

 

Basically, the page is a single page application (SPA), so every time the user clicks the CTA, the content of the page is changing which should be considered as pageView.

 

Currently, the Enter Viewports gave us 1 pageview across all views, but if we go back to the previously selected CTA, the rule is no longer firing, but thank you for the Click/Mousedown events, but it seems like that won't work for us, because when the user tries to spam the CTA, click events will gave us multiple beacons instead of 1, and using max frequency to limit the results won't work on the page.

 

Thank you for your insights, appreciate it.

 

 

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 27, 2025

You're right, the Enters Viewport should trigger on each use if this is an SPA... However, I don't have an SPA to test on at the moment... would you be willing to share a URL to your site to see if I can spot anything? (you can send via a private message so as to not share it publicly)