-bugfix: tracing data upload

tracking data is uploaded only if the page load is completed