urchin.js lokal hosten
rambo21
- javascript
0 Beat1 Christoph Jeschke0 molily
Hallo Leute,
stehe vor einem Problem. Habe folgende Aufgabenstellung, wo ich nicht so ganz draufkomme. Bitte um eure Hilfe und Hinweise.
"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:
1- Change something so that your browser does not go to the real Google Analytics Script.
2- Install a Web server locally.
3- Write your own urchin.js script that logs (or displays) when a page tries to use this script.
4- Make sure that your browser calls your script instead of Google's. "
Bitte um eure Hilfe!
Dankesehr
stehe vor einem Problem. Habe folgende Aufgabenstellung, wo ich nicht so ganz draufkomme. Bitte um eure Hilfe und Hinweise.
What you need to do:
1- Change something so that your browser does not go to the real Google Analytics Script.
2- Install a Web server locally.
3- Write your own urchin.js script that logs (or displays) when a page tries to use this script.
4- Make sure that your browser calls your script instead of Google's. "
Das lässt sich doch mit Adblock+ für Firefox viel einfacher machen.
mfg Beat
Guten Tag,
"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.
Darf ich fragen, was du erreichen willst?
Gruß
Christoph Jeschke
stehe vor einem Problem. Habe folgende Aufgabenstellung, wo ich nicht so ganz draufkomme.
Wenn du uns sagst, an welchem Punkt du nicht weiterkommst, können wir dir besser helfen. Die Anweisungen sind doch recht klar.
1- Change something so that your browser does not go to the real Google Analytics Script.
Hosts ändern, sodass www.google-analytics.com, pagead2.googlesyndication.com usw. nach 127.0.0.1 aufgelöst wird.
2- Install a Web server locally.
Apache-Webserver herunterladen, installieren und starten.
3- Write your own urchin.js script that logs (or displays) when a page tries to use this script.
JS-Datei im Web-Root-Verzeichnis des Apaches ablegen, das den Pfad hat wie der Analytics-Aufruf (/urchin.js vermutlich, bei neuerem GA-Code ist er anders, aber ähnlich).
Darin einfach
alert("hallo!");
4- Make sure that your browser calls your script instead of Google's. "
Macht der Browser, wenn obiges eingestellt ist.
Mathias