Title: Iinsert Google Analystic code
Last modified: August 19, 2016

---

# Iinsert Google Analystic code

 *  [fabianhartmann](https://wordpress.org/support/users/fabianhartmann/)
 * (@fabianhartmann)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/iinsert-google-analystic-code/)
 * Hey guys i just register on google analystics to track my site but they tell 
   me that i have to insert a javascript code but i don’t know excatly where.
 * the code is:
 * <script type=”text/javascript”>
    var gaJsHost = ((“https:” == document.location.
   protocol) ? “[https://ssl.&#8221](https://ssl.&#8221); : “[http://www.&#8221](http://www.&#8221););
   document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/
   ga.js’ type=’text/javascript’%3E%3C/script%3E”)); </script> <script type=”text/
   javascript”> try { var pageTracker = _gat._getTracker(“UA-12781987-1”); pageTracker.
   _trackPageview(); } catch(err) {}</script>
 * can anyone help?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/iinsert-google-analystic-code/#post-1368733)
 * Try editing the footer.php template file in your theme and adding the code block
   just before `</body></html>`.
 *  Thread Starter [fabianhartmann](https://wordpress.org/support/users/fabianhartmann/)
 * (@fabianhartmann)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/iinsert-google-analystic-code/#post-1368863)
 * now my footer.php looks like this
 * <?php global $wp_theme_options; ?>
    <div style=”clear: both;”></div> <div id=”
   footer”>
 * <?php wp_page_menu(‘menu_class=footernav&depth=1’); ?>
 * <?php wp_footer(); //we need this for plugins ?>
    </div><!–end #footer–>
 * </div>
    <?php do_action(‘it_footer’); ?> <script type=”text/javascript”> var 
   gaJsHost = ((“https:” == document.location.protocol) ? “[https://ssl.&#8221](https://ssl.&#8221);:“
   [http://www.&#8221](http://www.&#8221);); document.write(unescape(“%3Cscript 
   src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/
   script%3E”)); </script> <script type=”text/javascript”> try { var pageTracker
   = _gat._getTracker(“UA-12781987-1”); pageTracker._trackPageview(); } catch(err){}
   </script> </body>
 * <BODY onLoad=”scrlsts()”>
 * <p><center>
    <b><font face=”arial, helvetica” size”-2″>Triple S</b> <b>by</b>
   Superior Sprayed Systems Ltd.</font> </center><p>
 * <!– Script Size: 0.88 KB –>
 * </html>
 * but it is still not working! why?
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/iinsert-google-analystic-code/#post-1368864)
 * Your theme’s FOOTER.php has a body tag? Huh? What sort of theme is that?!?
 *  Thread Starter [fabianhartmann](https://wordpress.org/support/users/fabianhartmann/)
 * (@fabianhartmann)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/iinsert-google-analystic-code/#post-1368866)
 * please help me!!!!!!!!!!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/iinsert-google-analystic-code/#post-1368936)
 * Remove:
 *     ```
       <BODY onLoad="scrlsts()">
       <p><center>
       <b><font face="arial, helvetica" size"-2">Triple S
       </b>
       <b>by</b> Superior Sprayed Systems Ltd.</font>
       </center><p>
       ```
   
 * The Google code placement looks fine.

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

The topic ‘Iinsert Google Analystic code’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/iinsert-google-analystic-code/#post-1368936)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
