我正在尝试使用Google表格中的(=importhtml
)来查看URL,并确定HTML是否包含以下任一文本
fbq
UA-
这是为了帮助我确定页面是否安装了facebook像素或安装了Google Analytics(分析)
最好的方法是:
=QUERY(ARRAY_CONSTRAIN(IMPORTDATA("your_url_here"); 10000; 5);
"where Col1 contains 'UA-'
or Col2 contains 'UA-'
or Col3 contains 'UA-'
or Col4 contains 'UA-'
or Col5 contains 'UA-'"; 0)
=QUERY(ARRAY_CONSTRAIN(IMPORTDATA("your_url_here"); 10000; 5);
"where Col1 contains 'fbq'
or Col2 contains 'fbq'
or Col3 contains 'fbq'
or Col4 contains 'fbq'
or Col5 contains 'fbq'"; 0)