Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Enters Viewport event in Adobe Launch

sonalid36952742
Level 2
Level 2

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.

1 Accepted Solution
thomas_amsler
Correct answer by
Level 9
Level 9

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.

View solution in original post

2 Replies
thomas_amsler
Correct answer by
Level 9
Level 9

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.

View solution in original post

StevenBiss
Employee
Employee

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.