I hope someone can help answer my question. All of a sudden there is a random bit of code on the top left corner of my site (see images). The only thing I have done to edit it recently is my product descriptions, nothing to do with code. Does anyone know why it is there and how to get rid of it? It shows on mobile as well.
You can check at : theme → Edit > Search “theme.liquid”.
I checked and saw that you just added the google analytic code but it added in the wrong place, so there is an error code. you can cut this code to go up and look at the original standard code sample
Thanks for reaching out in our Community forums and for sharing your concern.
I’m happy to see that a few users were able to provide some assistance with finding the missing code in the header. As mentioned, this usually occurs due to malformed liquid code within your theme. To ensure that this is resolved, you will need to paste the code snippet as high in the of the theme.liquid code as possible. We have a tutorial that goes over this right here on our Shopify guide.
Kindly reply back to this thread with any questions or updates and we can continue our conversation further!
Thank you everyone for all your help! I realized that the person in charge of my SEO was adding some things to my code and accidentally caused the issue so he fixed it. However, I am sure one of your suggestions would have worked if he wasn’t able to fix it. Thank you for all your help! I really appreciate it!
Thank you very much for providing an update on your situation. I’m glad to see that you were able to locate and resolve the issue. Code changes can lead to a few unexpected errors so it’s always a good idea to constantly back up and duplicate your theme file.