Add type to pageLoad event
Update event parsing