Support » Themes and Templates » F2 » Adding Analytics Code to New F2 Theme

  • Resolved SidneySch

    (@sidneysch)


    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)
  • 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.