A bunch of code at top of my website. What do i do

Topic summary

Visible code appears at the top of a Shopify store; a screenshot shows “boomerang.js” (an analytics library) rendering on the page rather than executing.

  • Likely cause: malformed theme HTML (e.g., unclosed tags in the head) exposing JavaScript as text; could be a regression after recent edits. Another participant suggested the head section may not be closed properly.
  • Actions suggested:
    • Validate the theme HTML with W3C Validator.
    • Check a theme backup/duplicate and publish it if the issue isn’t present.
    • Roll back recent file edits using Shopify’s theme rollback.
    • Share the page link (provided: a myshopify.com preview) for verification.
  • Current findings: Multiple people could not reproduce the issue (Chrome on desktop shows the page normal). A screenshot was shared confirming normal display.
  • Troubleshooting next steps: perform a hard reload (Ctrl+Shift+R), test in another browser, and confirm whether the issue is reproducible.
  • Contact option: an email address was provided for paid debugging support.

Status: No confirmed root cause or fix yet. Issue may be intermittent or cache-related; further validation and rollback checks are recommended. Screenshots are central to illustrating the problem and the normal view.

Summarized with AI on January 9. AI used: gpt-5.

There’s been several posts like that, try to search for similar keywords as you used for your post title, and or bommerang.js.

The code in the image is bommerang.js an analytics library but that does not mean it is the problem code but merely showing because there is a problem elsewhere.

Javascript often appears like this in themes when the theme has bad html code added or is pre-existing and something changes finally exposing the bug ( a regression) .

If you need this debugged and fixed then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Good Luck.

where can i contact you by email i dont see your email

@Dman100 - can you please share this page link? I think this code is added into head section of your theme and somehow it is not been closed properly

1 Like

https://374395-5.myshopify.com/

paull.newton+shopifyforum@gmail.com right in my forum signature

@Dman100 - it is looking fine on my screen,

I do not see this issue in chrome browser latest version, desktop window OS.

Try hard reloading the page, or checking in another browser to confirm it’s reproducible.

press ctrl+shift+r in the browser to hard reload.