To track page load events, add this code immediately after the code you added in Step 1, after the line that reads .