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
-
Why Google not disavow some bad links
I have submitted bad links that I want to disavow on google with the Moz Pro hight spam score. Its almost 4 months completed yet I have a bad link that exists with high spam score any solution? https://fortniteskinsgenerator.net/
White Hat / Black Hat SEO | | marktravis0 -
Unwanted link ?
Hello Working on my 404 pages, I've just found the following http://awesomescreenshot.com/08d22txtc9 This website http://basilurteaindia.com has a link mine as checked into Google. Link is presented with some of my content here http://basilurteaindia.com/images/19022012list.asp?type=2&file=C%3A%5CProgram+Files+(x86)%5ChMailServer%5CData%5Cace-egy.com%5Cm.kilany%5C9A%5C%7B9A532C2F-FB00-4C72-9403-7F26B7DC8E54%7D.eml Does someone know what the hell is that and how to remove it ?
White Hat / Black Hat SEO | | AymanH0 -
Google +1s Quality Factors?
It is apparent that Google +1s are becoming an increasingly large factor in results pages and I had a few questions about some of the dynamics. Do +1s take into account factors such as c-blocks, location diversity based on IP, and similar elements? To what degree? Do +1s from well-diversified and historically more active/authoritative G+ accounts carry more weight than someone who simply has a G+ account because they use Gmail and were prompted? What is the spectrum here? How much weight would a +1 from Rand Fishkin hold in contrast to an account created one year ago with little activity? I know Google has a great deal of user data from Gmail, YouTube, Calendar, Docs, search history and many more so would imagine this plays a role. Do +1s from newly created accounts that only target one business or niche cause damage? I am assuming that +1s should accumulate naturally just as backlinks so if what would be considered an unnatural amount of +1s in what time period? Any insights here are greatly appreciated!
White Hat / Black Hat SEO | | SEOGroup1230 -
Where Is This Link Coming From?
According to Moz Analytics we have a link coming from here: http://www.grayshadowfinancial.com/ The anchor text is earthquake prone map. I can't find the link, but if I cntrl+f "earthquake prone map" it shows in the find box, even though I can't see it. I'm guessing this is some spam tactic and they are hiding this with their CSS? Is there anyway I could see it? Best, Ruben
White Hat / Black Hat SEO | | KempRugeLawGroup0 -
Does Google+ make a huge difference?
I run a website that's been ranked well for good keywords related to our business for some time. It was founded back in 2007 and has been there a while. Recently a new site has popped up that ranks brilliantly for everything. It's a new site, and the only redeeming factor I can see is that it has an AddThis box showing the Facebook Likes and Google Plus Ones, and they are around 400 Facebook Likes and 80 Google+ (for every page that ranks). Any other pages on their site which doesn't have any Facebook likes or Google Plus Ones, they don't rank. Our site doesn't have any likes or pluses. Is this making the difference? I stress that other than this our sites are very similar, other than the fact we've been around over 5 years.
White Hat / Black Hat SEO | | freebetinfo0 -
Backlinks According to Google
Good Morning, Google has just recognized some links going to my site. I used a seo toolbar downloaded from firefox that informed me of the Links according to Google. My question is that them links have been there for ages and Google has only just recognized them. Is there a reason for this? Does Google only show links quarterly or half yearly? Thanks SEO_123
White Hat / Black Hat SEO | | TWPLC_seo0 -
Getting Credit for your own inbound links
Good afternoon, I have been comparing competitors with the Open Site Explorer looking at their inbound links. I have noticed that they have been getting credit for their own inbound links within their site. Is there something I am doing wrong as inbound links on my site aren't getting found? Could this have anything to do with Webmaster tools? Thanks in advance, SEO_123
White Hat / Black Hat SEO | | TWPLC_seo0 -
When asking for links, what are good incentives to offer?
New to SEO and want to stay clean, What are white hat incentives you can offer in exchange for links? Giveaway for their readers? Give them helpful advice? Record video of me drinking a gallon of milk within 5 minutes?
White Hat / Black Hat SEO | | 10JQKAs0