Title: Where to install javascript code
Last modified: August 18, 2016

---

# Where to install javascript code

 *  [mark41157](https://wordpress.org/support/users/mark41157/)
 * (@mark41157)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/where-to-install-javascript-code/)
 * Where do I install the javascript code provided by the thrid party website trackers
   such as [http://www.statcounter.com/](http://www.statcounter.com/)
 * I’ve used this service in the past when my blog was on “blogger” with no problems
   but am getting funny results now on my WordPress blog.
 * I have tried putting the code in the sidebar, footer and header. Also does anyone
   know if its necessary to install the code into every page or post you wish tracked?
 * Thanks in advance
    Mark McClean [http://www.myebayadventure.com](http://www.myebayadventure.com)

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

 *  [msdana](https://wordpress.org/support/users/msdana/)
 * (@msdana)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/where-to-install-javascript-code/#post-443701)
 * Try this StatCounter plugin..
 * [http://blog.lucanos.com/2006/04/17/wordpress-statcounter-plugin/](http://blog.lucanos.com/2006/04/17/wordpress-statcounter-plugin/)
 *  [maverick4u](https://wordpress.org/support/users/maverick4u/)
 * (@maverick4u)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/where-to-install-javascript-code/#post-444267)
 * I found a cool Javascript plugin that did the trick for me. I had a js calculator
   on my site that would not work until I downloaded inline-js from [
    Just unzip the
   file and upload the inline-js.php file to the directory wp-contents/plugin. Activate
   the plugin from your admin panel. Now just copy the JS code to a plaintext editor
   like notepad but enclose the JS code with [inline] and [/inline] tags. Eg.-the
   example they gave was: 1. [inline] 2. <script type-“text/javascript”> 3. document.
   write(“hello world”); 4. </script> 5. [/inline] Now paste the whole code to where
   want the JS function to work in a post. In my calculator I had a 2 part install
   because I had to install code under the </HEAD> tag in the header.php(in theme
   editor) and the body code into my post. Hope this helps

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

The topic ‘Where to install javascript code’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [maverick4u](https://wordpress.org/support/users/maverick4u/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/where-to-install-javascript-code/#post-444267)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
