diff --git a/src/tracker/index.js b/src/tracker/index.js index 707594cf4..a378a9b2a 100644 --- a/src/tracker/index.js +++ b/src/tracker/index.js @@ -223,12 +223,14 @@ }; const init = () => { - if (!initialized) { - track(); - handlePathChanges(); - handleTitleChanges(); - handleClicks(); - initialized = true; + if(document.readyState==='complete'){ + if (!initialized) { + track(); + handlePathChanges(); + handleTitleChanges(); + handleClicks(); + initialized = true; + } } };