Title: Adding a tracking script
Last modified: August 19, 2016

---

# Adding a tracking script

 *  Resolved [hazelbug](https://wordpress.org/support/users/hazelbug/)
 * (@hazelbug)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/adding-a-tracking-script/)
 * Hi there,
 * I am trying to add in tracking script to this site [http://www.skyebuilders.com](http://www.skyebuilders.com)
 * The instructions on the tracking site say to “Paste the copied tracking code 
   immediately before the </body> tag” on any of the pages you want tracked – which
   we want all.
 *     ```
       <!-- Start of HubSpot Logging Code  -->
       <script type="text/javascript" language="javascript">
       var hs_portalid=10627;
       var hs_salog_version = "2.00";
       var hs_ppa = "xxxxxxxxxx.com"
       document.write(unescape("%3Cscript src='" + document.location.protocol + "//" + hs_ppa + "/salog.js.aspx' type='text/javascript'%3E%3C/script%3E"));
       </script>
       <!-- End of HubSpot Logging Code -->
        tag
       ```
   
 * I am new to the set up of wordpress, so do I put this in the “page.php” or main
   page index. and where in that code should I put it?
 * Thanks very much!

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

 *  Thread Starter [hazelbug](https://wordpress.org/support/users/hazelbug/)
 * (@hazelbug)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/adding-a-tracking-script/#post-817823)
 * and then it will generate on each page, right?
 *  [marsel-saeedi](https://wordpress.org/support/users/marsel-saeedi/)
 * (@marsel-saeedi)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/adding-a-tracking-script/#post-818125)
 * If you place it in the footer then it should appear in all pages since the footer
   those so.
    Hope that helps.

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

The topic ‘Adding a tracking script’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [marsel-saeedi](https://wordpress.org/support/users/marsel-saeedi/)
 * Last activity: [16 years, 12 months ago](https://wordpress.org/support/topic/adding-a-tracking-script/#post-818125)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
