Title: Placing Google Analytics code
Last modified: August 18, 2016

---

# Placing Google Analytics code

 *  [wol](https://wordpress.org/support/users/wol/)
 * (@wol)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/placing-google-analytics-code/)
 * I am using the theme “Idyllic” and cannot place the GA code where it is picked
   up by GA. GA recommends placing it before the </body> tag, but there isn’t one!
   Can someone help, please?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/placing-google-analytics-code/#post-588330)
 * You looked in the theme’s footer.php file? `</body>` is second from bottom.
 *  Thread Starter [wol](https://wordpress.org/support/users/wol/)
 * (@wol)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/placing-google-analytics-code/#post-588427)
 * Tried that – still not seeing it!!
 *  [Funkphenomenon](https://wordpress.org/support/users/funkphenomenon/)
 * (@funkphenomenon)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/placing-google-analytics-code/#post-588429)
 * Every theme has a closing body-tag… Just look for it in your other theme-files,
   like index.php.
    Or you might have deleted it.. Can you show the source code 
   of one of your pages?
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/placing-google-analytics-code/#post-588431)
 * In this case, I had actually downloaded the theme. I opened the footer.php. I
   admired the closing body tag.
 * I promise, it is there.
 *  Thread Starter [wol](https://wordpress.org/support/users/wol/)
 * (@wol)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/placing-google-analytics-code/#post-588465)
 * <!– begin footer –>
 * <!– Do not deleting the credits,
    this theme is released for free under the GNU
   General Public License (GPL) requiring that the credits will stay intact. I’d
   appreciate the credit being left in unmodified, thanks in advance –>
 * <div id=”footer”>
 *  by [WordPress](http://wordpress.org/) <br/> [Idyllic](http://www.ianlabs.com/)
   by [MandarinMusing](http://www.mandarinmusing.com) + [HSO](http://www.headsetoptions.org)
   |
 * Sponsored by [Air Miles Canada](http://www.airmilesshops.ca/)
    [Managed Hosting](http://www.fusepoint.com/)
   </div><!– end footer –>
 * </div><!– end content –>
 * <script src=”[http://www.google-analytics.com/urchin.js&#8221](http://www.google-analytics.com/urchin.js&#8221);
   type=”text/javascript”>
    </script> <script type=”text/javascript”> _uacct = “
   UA-“; urchinTracker(); </script> </body> </html>
 * You’re right that the body tag is here under the footer. The problem is that 
   I have put in the code and Google is still not seeing it.
 *  [jerryspan](https://wordpress.org/support/users/jerryspan/)
 * (@jerryspan)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/placing-google-analytics-code/#post-588555)
 * I place my google analytic code into WP in the Footer section before (/body) 
   tag.
    However, my UA-******-** code changes after I “update file.” What could
   be going on?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Placing Google Analytics code’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)

 * 6 replies
 * 4 participants
 * Last reply from: [jerryspan](https://wordpress.org/support/users/jerryspan/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/placing-google-analytics-code/#post-588555)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
