Table of Contents
When to Fire Tags or Page Load Events?
In fact, there are only two types of user interactions on the page. One is the basic Pageviews, which belongs to Page Load, and the other is behavioral interaction, such as clicking. There are many types, such as browser, form, keyboard, and media and so on.
There are four types of Page Load. Although the functions are similar, the order is different.Regardless of when the Launch library finishes loading, all the rules are guaranteed to be executed and they will be executed in the following order: Library Loaded (Page Top)>Page Bottom>DOM Ready>Window Loaded.
Rule A is executed immediately.
If the DOMContentLoaded browser event (DOM Ready) has already occurred, Rule B and Rule C are executed immediately. Otherwise, Rule B and Rule C are executed later when the DOMContentLoaded browser event occurs.
If the load browser event (Window Loaded) has already occurred, Rule D is executed immediately. Otherwise, Rule D will be executed later when the load browser event occurs. Note that if you’ve installed the Launch library according to the instructions, the Launch library always finishes loading before the load browser event occurs.
A rule using the Library Loaded event type might execute before your data layer is fully loaded. This can result in the rule’s actions executing with missing data because the data was not yet available on the page. These types of issues can be mitigated by tweaking your rule configuration. As an example, instead of having a rule triggered by the Library Loaded event type, you could instead use the Custom Event or Direct Call event type that are triggered by your page code as soon as your data layer finishes loading.
The Page Bottom event type doesn’t particularly provide value when the library is loaded asynchronously. Instead, consider the Library Loaded, DOM Ready, Window Loaded, or other event types.
Library Loaded (Page Top)
There are many behavior interactions. Adobe Launch has a lot of built-in behaviors, which is convenient for users to set events and choose according to the actual situation:
Detailed usage can be seen: 25 Various Rule Event Types and Condition Types