开发者

Scanning an entire site for analytics tags

开发者 https://www.devze.com 2023-03-07 05:21 出处:网络
We need to scan our entire site for certain analytic tags we fear might 开发者_如何转开发be missing.

We need to scan our entire site for certain analytic tags we fear might 开发者_如何转开发be missing.

Is there any tool out there that would allow us to do this in an automated fashion? So we don't have to do the entire thing manually?

I looked into one tool here at www.notagsnoglory.com but unfortunately they want to charge $1000 to scan for unique tags.

Thanks!


If you have shell access to your site, you could just use the grep command to locate possible instances of the analytic tag:

> cd /path/to/your/site && grep -Rs "[string to search for]" * | grep -v "[anything you don't want to see]"

For example, if the tag you're looking for contains the string "google-analytics", and if you have output noise such as subversion tags, then your command might look something like this:

> grep -Rs "google-analytics" * | grep -v "svn"

Hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消