我查看了 tiffinhealth 的页面源,有一个函数 specialtrack() 正在添加 target="_blank"
var specialtrack = new (function() {
[...]
var initialize = function() {
var links = document.links;
for (var i = 0, l = links.length; i < l; i++) {
var match = links[i].pathname.match(whitelist);
var match_links = links[i].href.match(domain);
var match_void = links[i].href.match('javascript:void');
if (typeof match_void == 'undefined' || match_void == null) {
if (typeof match !== 'undefined' && match !== null) {
links[i].addEventListener('click',trackpush_downloads,false);
links[i].setAttribute('target', '_blank');
}else if (typeof match_links == 'undefined' || match_links == null) {
links[i].addEventListener('click',trackpush_links,false);
links[i].setAttribute('target', '_blank');
}
}
}
};
该行links[i].setAttribute('target', '_blank');
是添加 target="_blank"; 的罪魁祸首。您应该与开发人员一起调查或尝试使用替代解决方案来达到您的目的;也许您也可以避免在同一页面上使用两个跟踪。
此外,在您的源代码中,您有很多绝对 url,包括域名:确保这在两个域之间是一致的,否则页面缓存最终将包含不一致:
<a href="http://www.hustoninsurance.com/images/Showcases/Locations/99 Ashwood Rd/Group.png">
<img src="http://tiffinhealthexchange.com/images/Showcases/Locations/99 Ashwood Rd/Group.png" alt="Group.png"/></a>