Title: Google Analytics
Last modified: August 19, 2016

---

# Google Analytics

 *  Resolved [wpgal](https://wordpress.org/support/users/wpgal/)
 * (@wpgal)
 * [18 years ago](https://wordpress.org/support/topic/google-analytics-6/)
 * How do I insert the Google Analytics tracking code into my Word Press blog? Through
   a text widget?
 * Thanks,
    A Newbie

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

 *  [Len](https://wordpress.org/support/users/lenk/)
 * (@lenk)
 * [18 years ago](https://wordpress.org/support/topic/google-analytics-6/#post-755206)
 * Did you not read the documentation from Google?
 * “It should be immediately before the `</body>` tag of your page.”
 *  Thread Starter [wpgal](https://wordpress.org/support/users/wpgal/)
 * (@wpgal)
 * [18 years ago](https://wordpress.org/support/topic/google-analytics-6/#post-755220)
 * Yes, I did read the documentation and I have successfully installed the tracking
   code on my site’s html pages.
 * But where is the html page in my Word Press blog?
 *  [Len](https://wordpress.org/support/users/lenk/)
 * (@lenk)
 * [18 years ago](https://wordpress.org/support/topic/google-analytics-6/#post-755223)
 * WordPress doesn’t have any HTML pages – it’s dynamic. Look in footer.php for 
   the closing `</body>` tag.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years ago](https://wordpress.org/support/topic/google-analytics-6/#post-755233)
 * wpgal,
    [This might be helpful](http://wordpress.org/support/topic/173323?replies=4#post-748760)
   for you, too.
 *  Thread Starter [wpgal](https://wordpress.org/support/users/wpgal/)
 * (@wpgal)
 * [18 years ago](https://wordpress.org/support/topic/google-analytics-6/#post-755241)
 * Thanks LenK. I put the code in the theme’s footer.php and now I’m waiting for
   data.
 *  [jimmi_henderson](https://wordpress.org/support/users/jimmi_henderson/)
 * (@jimmi_henderson)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/google-analytics-6/#post-755501)
 * OMFG… I suck at PHP… and there is no closing body tag in my footer.php
    … … …
   heres whats in my footer.php… {{{{{{</div> <!– main END –>
 *  <?php get_sidebar(); ?>
    <div class=”fixed”></div> </div> <!– content END –>
 * <?php include(‘templates/end.php’); ?>}}}}}}}}
    How confusing is that… I have
   to learn this chicken scratch? It seems more complex than c++…lol help, please

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [jimmi_henderson](https://wordpress.org/support/users/jimmi_henderson/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/google-analytics-6/#post-755501)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
