further-external / VPAL

An Apollo generated Event Driven Data Layer
0 stars 2 forks source link

Page Load Completed #13

Open Nayuken opened 1 month ago

Nayuken commented 1 month ago

Page Load Completed

Page Load Completed is part of the page load sequence, including virtual page loads in the case of single page apps, and must be the last event pushed in the page load event sequence.

Javascript Code

window.dataLayer = window.dataLayer || [];
dataLayer.push({
  "event": "page_view",
  "detailed_event": "Page Load Completed"
});

Attached Notes

Platform: ALL

Trigger this event when data from the data layer has completely propagated and the payload is ready to deploy. This helps prevent race conditions that could occur when using data from multiple events that load on a single page load (see the Article Loaded event).

Example page:

https://www.harvardonline.harvard.edu