How to add google analytics to a site?

amdcpus

BANNED
Joined
Nov 9, 2013
Messages
435
Reaction score
31
I started getting a fair amount of traffic so I want to start tracking it. I got a google analytics code but not sure where to put the code?
 
now you need to add this code to your website dude...

https://support.google.com/analytics/answer/1008080?hl=en&utm_medium=et&utm_campaign=en_us&utm_source=SetupChecklist
 
The code normally goes in the head section of every page you want to track.
 
better create a function and call it using the footer, so it gets imported in every page of your site :) many WP themes have this feature, and some need some work! :) let me know if you need any help! ;)
 
Sorry for not specifying but the site is made up of many php files.
 
copy code from Analytics and past it to your root. That's it.
 
Posts the tracking code to all pages you want track according to Google.
 
Sorry for not specifying but the site is made up of many php files.
are you using WordPress? If yes, you can paste the code in the footer.php file. If you're using something else, you must have a function for footer, paste the code in that file and you'll be good to go! ;) :)
 
Create a function in your head tags and called the script with that.
 
Back
Top