# Missing \</body\> Tag for Inserting Tracking Code

**URL:** <https://community.hubspot.com/t/missing-body-tag-for-inserting-tracking-code/9368>\
**Category:** Reporting & Analytics\
**Created:** [July 6, 2018, 7:16pm UTC](https://community.hubspot.com/t/missing-body-tag-for-inserting-tracking-code/9368 "2018-07-06T19:16:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesdean16](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jamesdean16/32/43872_2.png) [@jamesdean16](https://community.hubspot.com/u/jamesdean16)\
**Post date:** [July 6, 2018, 7:16pm UTC](https://community.hubspot.com/t/missing-body-tag-for-inserting-tracking-code/9368/1 "2018-07-06T19:16:59Z")

</div>

I got an email from HubSpot saying I was just “one step” away from something. I’m not sure what, as I haven’t been working on the CRO course for a couple of weeks now. Nevertheless, it seemed an important part of marketing, so I copied the tracking code and looked through my WordPress homepage for the \</body\> tag the instructions said I needed to put the code just before. Except..no such tag seems to exist in the text tab of my home page. Any ideas what to do now?

Windows 7

Firefox (updated version)

Thanks!

---

<div class="post-metadata">

**Author:** ![Phil\_Vallender](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/phil_vallender/32/48924_2.png) [@Phil\_Vallender](https://community.hubspot.com/u/Phil_Vallender)\
**Post date:** [July 6, 2018, 7:51pm UTC](https://community.hubspot.com/t/missing-body-tag-for-inserting-tracking-code/9368/2 "2018-07-06T19:51:11Z")

</div>

Hi @jamesdean16

The body tags are normally in the header.php file rather than in the page itself.

You may find it easier to use a script insertion plugin to add the tracking code, rather than editing your php files.

Hope this helps.
