diff --git a/templates/js/linker.v1.js b/templates/js/linker.v1.js index 22844f247a..42300ddc50 100644 --- a/templates/js/linker.v1.js +++ b/templates/js/linker.v1.js @@ -364,15 +364,6 @@ }; ns._trackPage = function() { - if (ns.trackedMatches.length === 0 && ns.matches.length > 0) { - // we want to track page in two cases: - // 1) if there are trackedMatches found - // or 2) if there are no trackMatches found AND no matches found, as we want to send a message - // to api/linker_track so that the backend will delete the webpage. - // however, this if statement is a third case: - // when there are no trackMatches found but there are matches found, we don't want to track page - return; - } var robots = document.head.querySelector("meta[name~=robots]"); if (robots && robots.content.includes("noindex")) { return; } diff --git a/templates/js/linker.v2.js b/templates/js/linker.v2.js index 9f2f9d84ca..dc9289eaef 100644 --- a/templates/js/linker.v2.js +++ b/templates/js/linker.v2.js @@ -618,15 +618,6 @@ }; ns._trackPage = function() { - if (ns.trackedMatches.length === 0 && ns.matches.length > 0) { - // we want to track page in two cases: - // 1) if there are trackedMatches found - // or 2) if there are no trackMatches found AND no matches found, as we want to send a message - // to api/linker_track so that the backend will delete the webpage. - // however, this if statement is a third case: - // when there are no trackMatches found but there are matches found, we don't want to track page - return; - } var robots = document.head.querySelector("meta[name~=robots]"); if (robots && robots.content.includes("noindex")) { return; }