How to put traffic analytics code?


(Bieber Jang) #1

this is the first time I run website without cpanel so quite nervous for everything I touch…

Where and how can I put google analytics code for discourse?


#2

Hi,
You’ll find everything you need at /admin/site_settings/

Don’t worry about messing things up, you can revert changes easily.


(Bieber Jang) #3

thank you.
I found ‘ga universal tracking code’
but what if I wanna put statcounter code?

actually I wanna put both GA and statcounter


#4

We don’t support statcounter, I’m afraid.


(Cameron:D) #5

However, with some modifications to the statcounter script you should be able to get it to run on each page load, this would probably be your starting point: