How to put traffic analytics code?

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?

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

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

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

actually I wanna put both GA and statcounter

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

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: