The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Other Research Tools
    4. Why does the Moz Tool Bar show code as HTML text for my site?

    Why does the Moz Tool Bar show code as HTML text for my site?

    Other Research Tools
    5 3 162
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • karasd
      karasd last edited by

      When I run my site in the Moz Tool bar, all of the page elements are read correctly except for HTML text.

      Sample page: http://www.lifeionizers.com/blog/alkaline-water/electrolyzed-reduced-water

      Instead of the text on that page, the tool shows Javascript code:

      /*

      With a very high character count for text (14,247).

      1 Reply Last reply Reply Quote 0
      • Moz.HelpTeam
        Moz.HelpTeam last edited by

        Hi Karasd,

        Thanks for writing in. Looks like the MozBar crawler isn't quite smart enough to figure out some of the code on the page, specifically this snippet:

        1 Reply Last reply Reply Quote 1
        • karasd
          karasd last edited by

          I removed the Javascript comments but it didn't fix the problem. The Moz Bar now shows the same line of code without the comment code:

          (function(d, s, id) { var js, fjs = d.getElementsB...

          1 Reply Last reply Reply Quote 0
          • JoelDay
            JoelDay last edited by

            Hey,

            I took a closer look at your page and it looks like what's happening is that you had a Facebook Script snippet in your body.

            I used Chrome's Dev tools to move the script from the body to the end of the head and Mozbar is showing proper words now: http://goo.gl/Zpcwme

            It's important to note that I'm not a Javascript developer, so I don't know if there was an explicit reason to have that code there. Generally scripts will need to go in the head tag or on a separate page and referenced. You'd want to confer with your dev team on this to make sure that's a viable solution for you.

            But that is what's going on. 🙂
            I hope that helps.
            Cheers,
            Joel.

            karasd 1 Reply Last reply Reply Quote 1
            • karasd
              karasd @JoelDay last edited by

              We have a partial victory! The Moz Bar works on the blog, but it appears we have a problem with a noscript script on other pages of the site, such as the homepage. The Moz On Page grader works for blog pages now as well. Before this fix, it was showing all F's, no matter how well optimized the page was.

              Thanks!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • I use json-ld in our site but schema not found in markup tool bar moz
                khusiinghal
                khusiinghal
                0
                6
                85

              • How accurate is Moz Rank Tracker tool? It's showing different results than a Google incognito search.
                moz_support
                moz_support
                1
                2
                369

              • Page Title showing Twice when I check it through Moz Bar
                tawnycase
                tawnycase
                0
                2
                111

              • Moz Top Pages and Tool Bar Not Crawling Internal Pages and Links
                dave.kudera
                dave.kudera
                0
                2
                42

              • Moz Bar doesn't show any data and keeps asking me to log in when actually I'm logged in.
                jocameron
                jocameron
                0
                4
                2.8k

              • Moz Tool Bar Annoyance - How do I make the green keyword difficulty box go away?
                RyanPurkey
                RyanPurkey
                0
                8
                432

              • Why isn't the Moz bar data populating for Yahoo sites?
                jon.white
                jon.white
                0
                2
                127

              • Has MOZ stopped including Text to Code Ratio?
                EricaMcGillivray
                EricaMcGillivray
                0
                4
                197

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              • Digital Marketers
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy