Make tracking work for events after page load