Title: Adding JavaScript to my blog
Last modified: August 19, 2016

---

# Adding JavaScript to my blog

 *  [shawshank](https://wordpress.org/support/users/shawshank/)
 * (@shawshank)
 * [18 years ago](https://wordpress.org/support/topic/adding-javascript-to-my-blog/)
 * I’d like to add a bit of javascript to my blog so I can track traffic. What file
   do I need to edit in order to add this JS?
 * Thanks!
 * Shawshank

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

 *  [Jess](https://wordpress.org/support/users/jessn/)
 * (@jessn)
 * [18 years ago](https://wordpress.org/support/topic/adding-javascript-to-my-blog/#post-787075)
 * You can most likely put it in your footer.php
 *  Thread Starter [shawshank](https://wordpress.org/support/users/shawshank/)
 * (@shawshank)
 * [18 years ago](https://wordpress.org/support/topic/adding-javascript-to-my-blog/#post-787082)
 * I found a file called admin-footer.php….is that the one you are referring to?
   I added the JS, refreshed my blog and looked at the source but it did not show
   up. In fact, looking at the blog footer and the text within admin-footer.php 
   and they don’t match. Am I missing something?
 * Shawshank
 *  [Jess](https://wordpress.org/support/users/jessn/)
 * (@jessn)
 * [18 years ago](https://wordpress.org/support/topic/adding-javascript-to-my-blog/#post-787083)
 * Where are you looking for the file? You should be looking inside the folder with
   all the files for your theme.
 *  [Jess](https://wordpress.org/support/users/jessn/)
 * (@jessn)
 * [18 years ago](https://wordpress.org/support/topic/adding-javascript-to-my-blog/#post-787084)
 * Yeah looks like you were in the wp-admin folder. Go up a level and go into wp-
   content, then “themes” then into the folder of the theme you’re running. Look
   for footer.php
 *  Thread Starter [shawshank](https://wordpress.org/support/users/shawshank/)
 * (@shawshank)
 * [18 years ago](https://wordpress.org/support/topic/adding-javascript-to-my-blog/#post-787090)
 * Cool, that did the trick.
 * Thanks!
 * Shawshank

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

The topic ‘Adding JavaScript to my blog’ 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/)
 * 5 replies
 * 2 participants
 * Last reply from: [shawshank](https://wordpress.org/support/users/shawshank/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/adding-javascript-to-my-blog/#post-787090)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
