Expand my Community achievements bar.

Rule Fire as late as possible upon the initial view of the page

Avatar

Community Advisor

Hello guys,

I need to implement a rule with event type is the latest to load? Which one I can use between DOM Ready. Window Loaded, Library Loaded and Page Bottom?

Thanks

Luca

2 Replies

Avatar

Level 4

@Luca_Lattarini For triggering the Rule as late as possible you can select eventType as Window loaded, as this is the event which triggers once the page has been completed loaded. For reference sharing the snapshot of other eventType informations.

Charles_Thirupa_0-1620568924330.png

 

Avatar

Level 4

They (should) fire in this order

  • Library Loaded
  • Page Bottom
  • DOM Ready
  • Window Loaded

 

Personally - I would use DOMReady. I would not trust window loaded. Window loaded fires AFTER all the images and other dependent assets are loaded. So if there is just one asset which is performing slowly - the event may never fire. (Which could yield analytics data loss)