Enters Viewport event in Adobe Launch | Community
Skip to main content
Level 2
Jun 26, 2019 10:58 AM UTC
Solved

Enters Viewport event in Adobe Launch

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.

thomas_amslerAccepted solution
Level 6
Jun 26, 2019 12:58 PM UTC

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

Employee
Aug 22, 2019 11:10 AM UTC

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.

Translate
thomas_amslerAccepted solution
Level 6
Jun 26, 2019 12:58 PM UTC

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.

Translate