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. Intermediate & Advanced SEO
    4. Javascript

    Javascript

    Intermediate & Advanced SEO
    9 3 962
    • 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.
    • Paul78
      Paul78 last edited by

      Hi there,

      Quick question:

      Does Google parse javascript?

      I have a html ad which contain the anchor text linking to one of our product pages, however the ad unit are javascript based and from this the code is not visible on page source through the browser.

      Kind Regards

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

        Google does crawl some JavaScript. Here is a brief news update on that from last November: http://searchengineland.com/google-can-now-execute-ajax-javascript-for-indexing-99518

        I have seen JavaScript elements get indexed in Google on some of my client's websites - especially simple JavaScript (for example, deep pages linked to using the document.write() method do get indexed and those deep pages are not linked elsewhere).

        All that to say, if you are trying to use the link for pure SEO value then you really should pull the link out of JavaScript just to be 100% certain Google crawls that link and reaches the page. After all the link building and site architecture work, why risk Google not seeing an important link?

        One final question back to you. You mentioned that this was an HTML ad. Is this an ad internally on your website or an external ad? If it is an internal ad, trying to drive traffic deeper into your website, then I would change that to plain HTML instead of JavaScript so that Google has the ability to access that page easily (and sees the internal promotion easily).

        However, if it is an external ad that you are paying for on somebody else's website, that link should have a rel="nofollow". Here is Google's webmaster support section and they say very plainly "Links purchased for advertising should be designated as such." They go on to say that one of the ways to designate a paid link as advertising is by "[a]dding a rel="nofollow" attribute to the <a>tag". If that is the case, within the JavaScript, you can include the rel nofollow as part of the</a> <a>tag that is output.</a> <a></a> http://support.google.com/webmasters/bin/answer.py?hl=en&answer=66736

        Paul78 1 Reply Last reply Reply Quote 0
        • Paul78
          Paul78 @Matthew_Edgar last edited by

          Hi Matthew,

          Thanks for the reply.

          Ok, the ad is on an external website, usually these  ads are just images pointing to our website, however I thought that by producing the ad in a way that the text on the ad can be read by search engines, I would get 2 benefits, first of all the ad will generate traffic to the website, plus it will pass SEO value to the website with the ability of being able to read the anchor text, OK, yes I have paid for this ad, however if I use a nofollow, surely this is a great opportunity lost in gaining a great back link from an authority website.

          Thanks

          jobintourism Paul78 Matthew_Edgar 6 Replies Last reply Reply Quote 0
          • jobintourism
            jobintourism @Paul78 last edited by

            Well, if you don't use the nofollow for a promotional link you risk your site to be penalized.
            I experienced that, a fall from PR 5 to PR 4  for my home page at www.jobintourism.it. Then,  a few days after that I had changed the link, filling in the correct value for the rel attribute, the PR was 5 again. It may be a dangerous game.

            1 Reply Last reply Reply Quote 0
            • Paul78
              Paul78 @Paul78 last edited by

              I doubt that the fall in PR was because you did not have a nofollow.

              1 Reply Last reply Reply Quote 1
              • Matthew_Edgar
                Matthew_Edgar @Paul78 last edited by

                On the PR fall, was it just one link or several links? If it was just one link, it would be hard to believe the penalty for just that link was that severe. What about other factors - like domain authority in OSE, rankings, organic traffic, etc.? Did that change as a result of the follow/nofollow?

                Gary, in response to your question - you are right, you do lose that second opportunity from having SEO value and traffic value. Honestly though I would play by Google's rules on this one and nofollow that link. I don't think the penalty would be so severe that you would lose rankings immediately but you don't want to get caught doing something spammy - there is no long term value there.

                With that link no followed though what other link opportunities are on that site other than the ad? For instance, if it is a news website or blog (let's say) where this ad is placed, can you talk to the editors of that site about them interviewing you about the product you are promoting? Or, if it is a blog, can you write a guest post? What I'm getting at is then you can have the link from this website along with having the ad. That way you get the SEO value plus the traffic value from the same website.

                1 Reply Last reply Reply Quote 0
                • Paul78
                  Paul78 @Paul78 last edited by

                  Thanks for the reply Matthew.

                  Is it really that spammy? I'm just trying to get the most out of my advertising.

                  Look it's far less spammy than what my competitors are doing, these guys are big brands, they have exact anchor text links on non-relevant websites, all the big players are doing it, i'm not saying monkey see monkey do, I just thought it was thinking outside the box a little rather than putting exact anchor text links on non-relevant websites, and the bizarre thing is, my competitors are ranking well for these keywords, and yes it's the only link building strategy they have and been doing so for years.

                  I'm sure it's not a big surprise to hear the above, even with the panda update, it just does not catch these websites out.

                  One of my main strategies is writing guest posts and these are improving the SERPs for the target keywords, if you sticking to the guidelines, even guest posting would not be allowed, I mean your deliberately forcing the back-link, Google says everything should come naturally, yeah right!

                  1 Reply Last reply Reply Quote 0
                  • Matthew_Edgar
                    Matthew_Edgar @Paul78 last edited by

                    What? Google allows people to rank who have exact anchor text on sites they are so clearly paying for links on? Get out! 🙂 No, I totally agree with you. It is pretty ridiculous what gets let through. It makes it really tough to do the "right" thing and follow Google's standards.

                    If I were you, I would look at how high value this domain is where you are placing the ad. If it has a really strong domain authority and a good reputation overall (it ranks, it gets traffic, it has decent social performance, etc.) then I would definitely keep the ad link set to "nofollow" just because it is more likely to be found since that site is higher profile. A low profile site you might get away with it.

                    That being said, I'm paranoid and I tend to err on the side of "nofollow" because I don't want to ever tell a client "Uh, yeah, you know that thing I did on that link...yeah, sorry Mr. Client, it got you penalized." Despite many flaws, Google is getting better at detecting these things so I don't want to put sites I manage in a situation where they could be at risk as a result of some Panda-on-steroids type change.

                    As for guest posting, is that really forcing it in a spammy way? I mean, if you build a relationship with a webmaster and get a guest post there as a result of that, then the guest post is a result of a natural relationship. If you are paying for the guest post, that would be spammy.

                    1 Reply Last reply Reply Quote 0
                    • Paul78
                      Paul78 @Paul78 last edited by

                      Yeah, I know can you believe it 🙂 Anyway, look we know lots of websites are doing it, yes even the big brands and are ranking well due to this strategy, I suppose having a big budget to play with, the temptation is just too much.

                      I am paranoid also, isn't everyone in this industry, I mean if you do follow Google's guidelines, there is no way you are going to rank well for competitive keywords, I look across all industries, especially retail and they are all it.

                      You have got to be more aggressive I think to gain good SERPs

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • How to solve JavaScript paginated content for SEO
                        MJTrevens
                        MJTrevens
                        1
                        3
                        53

                      • Does Javascript links pass equity? (AngularJS)
                        alexrbrg
                        alexrbrg
                        0
                        3
                        72

                      • Country Redirect Javascript
                        bjalc2011
                        bjalc2011
                        0
                        4
                        167

                      • JavaScript Issue? Google not indexing a microsite
                        Jen_Floyd
                        Jen_Floyd
                        0
                        9
                        434

                      • Can Google read my backlink in Javascript??
                        Christy-Correll
                        Christy-Correll
                        0
                        5
                        2.0k

                      • Deferred javascript loading
                        Aran_Smithson
                        Aran_Smithson
                        0
                        2
                        449

                      • Can Javascript be SEO friendly?
                        RobertFisher
                        RobertFisher
                        0
                        5
                        11.3k

                      • Google, Links and Javascript
                        AlanBleiweiss
                        AlanBleiweiss
                        0
                        5
                        1.0k

                      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