Viewport | Community
Skip to main content
monicar14793444
January 29, 2018
Solved

Viewport

  • January 29, 2018
  • 3 replies
  • 3426 views

HI,

After I see the banner on a particular page by scrolling down to the button until i get it into my view port .A rule should fire in the Omnibug . How should I set the conditions for this .Please need your help.

Thanks

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 SarahEOwen

Hi -

In DTM, you will want to set up an Event Based rule.

In the "Conditions" , you will want to select "enters viewport" and provide the element tag/selector that needs to enter the viewport.

In this example (see screen shot below), when the attribute scrolled-to enters into the viewport and is in the viewport for 2000 milliseconds, then the rule will fire off.

Thanks -

Sarah

3 replies

SarahEOwen
SarahEOwenAccepted solution
January 29, 2018

Hi -

In DTM, you will want to set up an Event Based rule.

In the "Conditions" , you will want to select "enters viewport" and provide the element tag/selector that needs to enter the viewport.

In this example (see screen shot below), when the attribute scrolled-to enters into the viewport and is in the viewport for 2000 milliseconds, then the rule will fire off.

Thanks -

Sarah

monicar14793444
January 29, 2018

Thank you Sarah. It fires the call .

SarahEOwen
January 29, 2018

YaY!