The process for adding your Google Analytics Code to any of the Genesis Child Theme is same, without using any plugin.
For that just follow these simple steps.
- Just copy the the Google Analytics tracking code from your Google Analytics Account.
- Now Login to your WordPress Dashboard
- Go to Genesis theme settings
- Scroll down to Header and Footer Scripts, then add the code to the header script box.
the script is added to the header box instead of footer box so that the tracking script can be loaded before the other scripts.
NOTE: It may take 2 to 3 days from the date of inclussion of the tracking script on your site to get detected by the Google Analytics’ dashboard and reflecting of the stats from your site.
Not sure, if it’s a good idea to include any JS in header. My personal experience says that it’s better to include it in footer. That way site speed is not affected and JS gets to scan complete content of the page to fetch contextual ads from Google servers.
Greetings.
As per any JS is concern it is correct to add them in the footer area but, like Google Analytics script its the best practice to add them in the header area as its an asynchronous so it wont affect loading of any other content of that site and by adding them in the header, one can expect more accurate stats ..