Title: Adding Analytics Code to New F2 Theme
Last modified: August 30, 2016

---

# Adding Analytics Code to New F2 Theme

 *  Resolved [SidneySch](https://wordpress.org/support/users/sidneysch/)
 * (@sidneysch)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-analytics-code-to-new-f2-theme/)
 * With the older, original version of the F2 theme, using a CHILD theme, I created
   footer.php and put Google Analytics code in it and all was well. I have just 
   migrated my site to your new F2 responsive theme! I like the new theme. However,
   I’ve tried adding the Analytics code to, via the CHILD theme folder: header.php…
   footer.php … and functions.php.
 * Not all at once. I try one, it doesn’t work. I try the next one, etc. Nothing
   I do works. When I look at a webpage and look at the source code, the Analytics
   tracking code is nowhere to be found. Very frustrating.
 * I’m sure there is a simple explanation, but I MUST be able to use Google Analytics
   on my site’s theme. If anyone has successfully added Analytics code to the new
   theme, please tell me how you did it. I must get this to work. Thank you very
   much!

Viewing 1 replies (of 1 total)

 *  Thread Starter [SidneySch](https://wordpress.org/support/users/sidneysch/)
 * (@sidneysch)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-analytics-code-to-new-f2-theme/#post-6305713)
 * I’m back. It turned out that clearing browser cache, which I did but apparently
   it didn’t take the first couple times (?) fixed the problem. I did put the asynchronous
   Google analytics tracking code in header.php in the child theme right before 
   the closing head tag, per Google’s instructions. Finally when I looked at the
   page source it was there. Yea! Clear that browser cache, cookies, and anything
   else you can clear … at least once!

Viewing 1 replies (of 1 total)

The topic ‘Adding Analytics Code to New F2 Theme’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/f2/2.2.3/screenshot.png)
 * F2
 * [Support Threads](https://wordpress.org/support/theme/f2/)
 * [Active Topics](https://wordpress.org/support/theme/f2/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/f2/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/f2/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [SidneySch](https://wordpress.org/support/users/sidneysch/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/adding-analytics-code-to-new-f2-theme/#post-6305713)
 * Status: resolved