Seite 1 von 1

Google Analytics

Verfasst: 22.01.2006 19:54
von zeTo
huhu

ich wollte in meinem Forum Google Analytics einbauen. Zum Einbauen steht auf der Seite von Google:
Copy and paste the code segment into the bottom of your content, immediately before the </body> tag of each page you are planning to track. If you use a common include or template, you can enter it there.
Da wusste ich nicht genau, in welche Datei ich das dann beim Forum packen soll. Ich habe es dann einfach mal in die page_header.php getan, aber dann bekam ich immer Fehlermeldungen wie:
Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp1005869_KW8R8L6O34/www/forum/login.php:2) in /is/htdocs/wp1005869_KW8R8L6O34/www/forum/includes/sessions.php on line 305

Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp1005869_KW8R8L6O34/www/forum/login.php:2) in /is/htdocs/wp1005869_KW8R8L6O34/www/forum/includes/sessions.php on line 306

Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp1005869_KW8R8L6O34/www/forum/login.php:2) in /is/htdocs/wp1005869_KW8R8L6O34/www/forum/includes/functions.php on line 787
Könnt ihr mir vielleicht helfen und sagen, wo ich das hintun muss?

Verfasst: 22.01.2006 20:00
von hagily
KB:headers_already_sent

Verfasst: 22.01.2006 20:03
von zeTo
ja, das war schon klar, aber ich weiß nicht, wo ich den code für google hintun muss, damit diese fehlermeldung nicht mehr kommt.

Verfasst: 23.01.2006 11:57
von jasc
Probier's mal mit der templates/deintemplate/overall_footer.tpl sofern du das für's ganze Forum haben willst.

Verfasst: 23.01.2006 12:20
von zeTo
vielen dank, scheint geklappt zu haben. mal sehen ob ich dann morgen die ersten daten habe.