# Installing Tracking Code on Shopify

**URL:** <https://community.hubspot.com/t/installing-tracking-code-on-shopify/16179>\
**Category:** Ads\
**Created:** [September 10, 2019, 3:47pm UTC](https://community.hubspot.com/t/installing-tracking-code-on-shopify/16179 "2019-09-10T15:47:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nturenne](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nturenne/32/82797_2.png) [@nturenne](https://community.hubspot.com/u/nturenne)\
**Post date:** [September 10, 2019, 3:47pm UTC](https://community.hubspot.com/t/installing-tracking-code-on-shopify/16179/1 "2019-09-10T15:47:27Z")

</div>

Hi there,

I’m trying to set up ad tracking on my Shopify store. I’m looking to paste the code in my theme.liquid file, but the file does not list \</body\> tag, as per Hubspot’s instructions.  
Has anyone else encoutered this problem before?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![MFrankJohnson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfrankjohnson/32/22490_2.png) [@MFrankJohnson](https://community.hubspot.com/u/MFrankJohnson)\
**Post date:** [September 10, 2019, 6:21pm UTC](https://community.hubspot.com/t/installing-tracking-code-on-shopify/16179/2 "2019-09-10T18:21:01Z")

</div>

We’ve seen cases where the closing \</body\> tag was missing from theme.liquid due to either a misbehaved app or careless editing. That being said, the closing \</body\> tag in theme.liquid is required and should be either restored to its proper location or added to the end of the file before any other action is taken. (important)
