Where is the closing tag in my liquid.theme file?

I’m setting up the Pongo Affiliate app and I’m not sure how to do this part. It says to do this: “Directly above the closing tag in this file, copy and paste the code below into it”

I found the liquid.theme but I don’t know what I’m looking for when it says closing tag. I know practically nothing about code and I don’t want to just start messing with things willy nilly.

Can anyone tell me what I’m looking for? And also how to enter the code in? “copy/paste below into it” makes zero sense to me. Thank you!

Hey, @Kintsugi-Co .

Elias here with Shopify Support. I’d be happy to lend a hand with this!

I can see why the instructions for Pongo Affiliate is confusing, as there are several different closing tags on the theme.liquid file. However, since the instructions isn’t exactly clear which tag it wants you to paste their code above it, then I’d recommend testing each location and seeing which one works properly. If one location doesn’t work, then you can always roll back to an older version of your theme file and paste the code under a different closing tag. Sometimes both locations will work and it will come down to your preference, as the placement of the code can also determine where their coding appears on your store.

The first closing tag you’ll come across is the closing head tag, which is very common place for inserting codes (eg. Facebook Pixel, Google Analytics, etc). Simply copy the code provided by the app and paste the code onto a line above or you can also create a new line above , then hit save and check if the code is working. If that doesn’t work, then roll back your theme and paste the code onto the line above the next closing tags - the next closings tags is the body and HTML tags. You can paste the code above or , then hit save again and check to see if the code works.

Here’s an example of the closing tags from my test store (Debut theme):

If you need any further assistance with this app, it’s worth noting that the app developers are always available to assist you as well. You can reach out to the developer directly through the contact information found in the Support section of their app’s page.

I’d love to know if this can help you with installing their coding on to your theme. Keep me posted!