Enters Viewport event in Adobe Launch | Community
Skip to main content
Level 2
June 26, 2019
Solved

Enters Viewport event in Adobe Launch

  • June 26, 2019
  • 2 replies
  • 5442 views

I'm new to Adobe Launch. I have to track the first occurence of an element of a page. So when user refreshes or comes back to that page again, the rule should not trigger.

Can someone explain me where I'm going wrong. The event is triggered everytime  instead of first occurrence.

Best answer by thomas_amsler

When you refresh the page or navigate back to it from an other page, the rules are loaded anew. Launch doesn't store this for longer than one page load. The easiest way to achieve this, is to add a custom code action where you store a flag in the sessionStorage object of the browser and to check for it in a condition if the rule should be triggered.

2 replies

thomas_amslerAccepted solution
Level 6
June 26, 2019

When you refresh the page or navigate back to it from an other page, the rules are loaded anew. Launch doesn't store this for longer than one page load. The easiest way to achieve this, is to add a custom code action where you store a flag in the sessionStorage object of the browser and to check for it in a condition if the rule should be triggered.

Adobe Employee
August 22, 2019

Hi, you can add an additonal "Action" to set a Data Element for the Visit/Visitor session to '1', 'true', etc.

This Data Element can then be used in the Rule Conditions to ensure it only fires when the value is not present.