Arc Forumnew | comments | leaders | submitlogin
Google Analytics inside news?
2 points by marcvs 4054 days ago | 3 comments
hi guys,

i'm trying to setup a hacker news clone for people willing to discuss arts and tech in São Paulo, Brazil.

eveything is working fine, and now i'm wondering if it's possible to insert a google analytics code within the original news.arc code. could it be done?

really newbie, i know... but all help will be welcome!

thank you



3 points by akkartik 4054 days ago | link

Look for votejs* in news.arc, how it's defined and where it's used. You can insert arbitrary javascript by similar means, including the analytics code.

Does that make sense?

-----

3 points by thaddeus 4054 days ago | link

Note though, while votejs* may be appropriately placed in the page header section, my understanding is that you want your google analytics script tags to occur after your body section (or at the end of your body section) such that the page display doesn't have to needlessly wait.

-----

1 point by marcvs 4049 days ago | link

hey, it works! thank you.

-----