JavaScript encoded links on an AngularJS framework...bad idea for Google?
-
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
-
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
-
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!
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Is it Okay to Nofollow all External Links
So, we all "nofollow" most of the external links or all external links to hold back the page rank. Is it correct? As per Google, only non-trusty and paid links must be nofollow. Is it all same about external links and nofollow now?
White Hat / Black Hat SEO | | vtmoz0 -
Internal Links to Ecommerce Category Pages
Hello, I read a while back, and I can't find it now, that you want to add internal links to your main category pages. Does that still apply? If so, for a small site (100 products) what is recommended? Thanks
White Hat / Black Hat SEO | | BobGW0 -
How to gain links to this site
Hello, How would you suggest I gain backlinks for bobweikel.com in light of all present and future Google updates? Thanks!
White Hat / Black Hat SEO | | BobGW0 -
Content ideas?
We run a printing company and we are struggling to come up with unique content people will actually want to know, is there any way of getting the ball rolling? We were thinking of ideas such as exhibition guide but this seems to have been overdone. Any help would be appreciated.
White Hat / Black Hat SEO | | BobAnderson0 -
Need advice on best strategy for removing these bad links.
Heres the scenario... We recently took on a new client who's previous seo company had partaken in some dodgy link building tactics. They appear to have done some blog comment spam, very poorly. The situation we are now in is this: We have a site with an internal page deemed more important than the homepage (the homepage has 60 linking root domains and the internal page 879). It looks as though the previous seo company submitted a disavow request, theres a message in webmaster tools from a few weeks back saying it had been received, but no further correspondence. I have doubts as to whether this disavow request was done correctly... Plus im not sure that Google has issued the site a warning yet as they are ranking position one for the keyword on the internal page. Our clients want us to handle this in the correct manner, whether it be to simply ignore it and wait for Google to send a warning about the links, remove the offending internal page and leave a 404, or try to disavow the links that google doesnt know about yet from 800+ websites. Suggestions for the best practice for dealing with this situation? Any advice is much appreciated, Thanks, Hayley.
White Hat / Black Hat SEO | | Silkstream0 -
Link directories question
Looking over a clients site and they have a bunch of link directory links that seem very skeptical to me, but the mozrank and authority seem to be ok on the home page. One directory is addlinkzfree and they have the same template and layout as a few other directories this client has. Link page has no juice whatsover, but home page has PA 54, MR 5.04 and root domain is DA 45. At first glance this would appear to be respectable numbers right? But the title of the directory and multitude of links lead me to think its nothing but a link farm. Should I advise the client to run and try to remove links from these type sites even though home page has decent scores? Im of the mindset that anything diredctory with links, free, partners etc in title need be avoided. Would appreciate any backup on this or am I just being paranoid?
White Hat / Black Hat SEO | | anthonytjm0 -
Does anyone have any suggestions on removing spammy links?
I have some clients that recently got hit by "Penguin" they have several less than desireable backlinks that could be the issue? Does anyone have any suggestions on getting these removed? What are the odds that a webmaster on these spammy sites are going to remove them, and is it worth the time and effort?
White Hat / Black Hat SEO | | RonMedlin3 -
How google treats RSS fetcher?
All I want to know how google treats RSS fetcher. I want to push my blogs to my own website. Both are there on the same domain . But I want them to be updated automatically on the home page of my website through RSS fetcher if i create it on my blog page. My site name is http://www.myrealdata.com and my blog site name is http://www.myrealdata.com/blog
White Hat / Black Hat SEO | | SangeetaC0