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. White Hat / Black Hat SEO
    4. JavaScript encoded links on an AngularJS framework...bad idea for Google?

    JavaScript encoded links on an AngularJS framework...bad idea for Google?

    White Hat / Black Hat SEO
    4 2 348
    • 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.
    • AU-SEO
      AU-SEO last edited by

      Hi Guys,

      I have a site where we're currently deploying code in AngularJS. As part of this, on the page we sometimes have links to 3rd party websites.

      We do not want to have followed links on the site to the 3rd party sites as we may be perceived as a link farm since we have more than 1 million pages and a lot of these have external 3rd party links.

      My question is, if we've got javascript to fire off the link to the 3rd party, is that enough to prevent Google from seeing that link? We do not have a NOFOLLOW on that currently.

      The link anchor text simply says "Visit website" and the link is fired using JavaScript.

      Here's a snapshot of the code we're using:

      Visit website

      Does anyone have any experience with anything like this on their own site or customer site that we can learn from just to ensure that we avoid any chances of being flagged for being a link farm?

      Thank you 🙂

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

        Hi Kavit,

        The short answer is no. Google can render some JS - possibly even AngularJS - so never assume that something rendered in JS is invisible to Google. You should assume that Google can see all links visitors can, and really push for a nofollow tag.

        I usually check what Google can render by loading Google's cache of the page (go to Google.com and type in "cache:" in front of the exact URL of one of your pages). Look at the text-only version of the cache, and see if Google puts a link there. If they do, it's safe to assume that they can see that link. Another option is to use GSC to Fetch as Google; Google claims this is exactly what they're seeing.

        If both the cache and GSC show that Google can't see a link, Google's probably not crawling it. But, Google's always getting better, and could suddenly see the links any day now. If these links are really a concern to you, I'd strongly suggest that you push your dev team to add nofollow tags to these outgoing links.

        Best,

        Kristina

        AU-SEO 1 Reply Last reply Reply Quote 1
        • AU-SEO
          AU-SEO @KristinaKledzik last edited by

          Hi Kristina,

          First of all, thank you for taking the time out to respond.

          Very valid rationale you provided. I did have a look at the cache version before I posted on here and it didnt show the link I was looking for, however the GSC screen showed the link highlighted as a link.

          That's what got me confused. I guess its safe to assume in that case that it wont be seen by Google considering it's not in the text version of the cached page.

          I'll work on getting a NOFOLLOW in there since there's no guarantees with Google when they change stuff around. But, its great to know that it isnt an immediate requirement at the moment...

          Thank you again Kristina!

          KristinaKledzik 1 Reply Last reply Reply Quote 0
          • KristinaKledzik
            KristinaKledzik @AU-SEO last edited by

            Hm, I'd be a little concerned if GSC can see it. Maybe GSC can see that JS turns it into a link, but can't figure out what that link is?

            Any way, sounds like your hands are kind of tied until you can get those nofollows! Definitely make a note in your analytics platform when you get them implemented - it'll be interesting to see what effect they have on your rankings.

            Good luck!

            Kristina

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Have just submitted Disavow file to Google: Shall I wait until after they have removed bad links to start new content lead SEO campaign?
              DennisSeymour
              DennisSeymour
              0
              5
              156

            • Does Google Consider a Follow Affiliate Link into my site a paid link?
              Everett
              Everett
              0
              6
              178

            • Bad links, from bad sites... how to get a solution?
              KaneJamison
              KaneJamison
              0
              3
              191

            • Link idea? good or bad?
              KeriMorgret
              KeriMorgret
              0
              3
              133

            • How do I know what links are bad enough for the Google disavow tool?
              Debdulal
              Debdulal
              0
              3
              323

            • Are links from directories good or bad?
              TylerReardon
              TylerReardon
              0
              6
              645

            • Fix Bad Links in Google
              TomBristol
              TomBristol
              0
              3
              440

            • Is widget linkbaiting a bad idea now that webmasters are getting warnings of unnatural links?
              ChrisDyson
              ChrisDyson
              1
              4
              744

            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