我有3个域名指向同一个网站,没有重定向,所以domain1.com,domain2.com和domain3.com显示相同的内容,彼此之间不重定向。如果我想要跟踪所有的域名,我是否必须在"What you are tracking“部分中勾选Multiple top-level domains,并为每个域名添加以下内容谢谢。
我需要一个通用的脚本/模式来从URL中提取主域名。下面的尝试失败了。https://(optional sub-domain)*(domain name with two or three top-level domain name)(optionalurl.hostname.split('.').slice(-3).join('.');
console.log