Why is there random code appearing on my website screen?

Hi -

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.

Thanks in advance!

Jen

@jcop24

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

Thank you very much!! I really appreciate your help!

https://theantiagingpro.com/

I’m Richard Nguyen - CRO Expert at PageFly- Free Landing Page Builder.

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

This code error

If you find my comment useful, please let me know by giving it a Like. Thank you!

Richard - PageFly

Thank you for your reply!

The code should look like the first image correct? So I should change mine to look like the first image?

@jcop24

thanks for url can you please send theme.liquid

Hi, @jcop24 !

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!

Hey, @jcop24 !

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.

Have a great day and best of luck in the future!

Hi Richard. My page has this exact problem, please what should I do?