I am developing a site in rails which requires information whether any analytics like google analytics or any other analytics tool are done for the entered website’s URL.For example if i enter:http://facebook.com and click on checkAnalytics button, then it results in either Yes or No..which would be yes in this case.
Please let me know if any one has a solution to this.
Thanks
There are online services that scrape this information.
https://www.ghostery.com makes a browser extension that looks for 3rd party scripts like ad networks and analytics.
For our internal CRM we just request the website’s main page, and check to look for strings in the HTML like ‘google-analytics’.
You can use the OpenURI ruby library to get the content of the website’s page.
Hope this helps!