Hallo
Ich habe die Aufgabe zu lösen, dass immer wenn auf einer Seite Google Analytics installiert ist ein PopUp geöffnet werden soll.
Die genaue Angabe ist folgende:
Ich dachte mir wenn nun www.google-analytics.com/urchin.js aufgerufen wird müsste eigentlich meine urchin.js aufgerufen werden und es sollte sich ein Popup öffenen. Tut sich aber nichts.
Kann mir jemand sagen was ich falsch mache?
Ich habe die Aufgabe zu lösen, dass immer wenn auf einer Seite Google Analytics installiert ist ein PopUp geöffnet werden soll.
Die genaue Angabe ist folgende:
Nun habe ich Apache installiert und im www Verzeichnis meine urchin.js und ga.js Files abgelegt. Die HOSTS Datei habe ich so modifiziert, dass alle Aufrufe von www.google-analytics.com auf 127.0.0.1 umgeleitet werden:Google Analytics is a free service by Google that generates statistics about the visitors to a website. It is used by many web masters to track users' activities and gather information on how to optimize their sites.
In the course of this assignment you are to identify pages that use Google Analytics by logging calls to the Google Analytics engine. In order to do so, you will have to somehow intercept calls to urchin.js by your browser.
Set up your computer so that when surfing to any page that uses Google Analytics, the Google Analytics script (urchin.js) is not called, but instead a local .js File (that your local Web sever hosts).
What you need to do:
- Change something so that your browser does not go to the real Google Analytics Script.
- Install a Web server locally.
- Write your own urchin.js and ga.js script that logs (or displays) when a page tries to use these scripts. Also handle calls via SSL
- Make sure that your browser calls your scripts instead of Google's.
- Document everything you did and hand it in.
- Create and upload a ZIP archive.
- The ZIP archive has to contain a PDF file detailing your approach along with eventual source files.
Code:
127.0.0.1 www.google-analytics.com
Ich dachte mir wenn nun www.google-analytics.com/urchin.js aufgerufen wird müsste eigentlich meine urchin.js aufgerufen werden und es sollte sich ein Popup öffenen. Tut sich aber nichts.
Kann mir jemand sagen was ich falsch mache?
Zuletzt bearbeitet: