Enters Viewport event in Adobe Launch

Avatar

Avatar

sonalid36952742

Avatar

sonalid36952742

sonalid36952742

26-06-2019

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.

viewport.PNGviewport1.PNG

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

thomas_amsler

Avatar

thomas_amsler

thomas_amsler

26-06-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.

Answers (1)

Answers (1)

Avatar

Avatar

StevenBiss

Employee

Avatar

StevenBiss

Employee

StevenBiss
Employee

22-08-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.