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
-
Competitors Linking to My Site
One of the more successful competitors in my niche has embarked on new strategy that seems to be working well for him. I noticed that many new links began to appear to my site from my competitor's stable of many websites. It appears that he has setup a link wheel to benefit a site that has been in the top Google position for several months now. The rim of the wheel links back to authority sites, including my own main site (established 7 years, now hanging on to the lowly 10th place on the serp). So the strategy seems to be: a) create a dozen sites that no-follow link back to authority sites including competitors, b) place links in a such a manner (bottom of page, uncolored links, from images) that a customer is unlikely to ever click on it, c.) do-follow to your own site and blast it to the top of Google. I don't think this competitor is worried about getting penalized. I've been watching this for years. When one site gets burned, he just shifts things around and brings up another one of his sites. He seems to age them for years, calling them up one by one as they are needed. Has anyone else noticed this? Is it a trend? Because it sure seems to work. He's crowded the front page now with 4 of his sites. Would it be appropriate for me to "disavow" his links? Would it matter?
White Hat / Black Hat SEO | | DarrenX0 -
Unnatural inbound links message from Google Webmaster Tools!
Hi Everyone, I just got this message from GWT(image below) This is probably a penguin Penalty. What is clear is I have to find the best and most efficient way to tackle this issue. We will probably lose tons of traffic in the next couple of weeks so I would like to get the best suggestions and maybe a guideline on how to do this in the most effective way! Thank you! 1a0X2M2a1h0A
White Hat / Black Hat SEO | | Ideas-Money-Art0 -
Spam linking site how to report
I have a spam linking site that is generation thousans of links to my site. Even if i have a good link background, this is the only spammy i have, each week number of links comings from it increases by 500 , i know have 3000 links for that site and 1800 for other sites, but that one keeps growing What should i do, i dont want that link it is imposible to remove as webmaster does not respond
White Hat / Black Hat SEO | | maestrosonrisas0 -
My website disapeared from google rankings, please help?
Our website url is http://www.phoria.com Around January 16th we disappeared from google for the keyword 'kratom' We were on page 3 for the longest time. We have no critical messages in webmaster tools however I did notice most of our links seem to be website directory links.We still rank for a couple terms like buy kratom on page 6.I think a google update occurred around this time so I've read however if we had a variety of links that went against google guidelines wouldn't we have received a message stating so in Webmaster Tools?This month has been very confusing to say the least. Any help would be appreciated.
White Hat / Black Hat SEO | | gregdotcom0 -
How to Remove Unwanted Links
I dropped like a rock in Google rankings on the 24<sup>th</sup>
White Hat / Black Hat SEO | | rdominey
of April. After having to become familiar with Google webmaster tools and doing
allot of investigating I discovered that there is a website www.siteloki.com  that has 6,742 links to my website. I have
tried to contact siteloki with no response. I tracked them on Whois to an
office suite in LA called the building to find that the suite listed is the
building management suite. Â I have had
the following sent to them via email, their contact page and posted on their website
forum and still no reply: Please take action to remove all links to this website
immediately! I have been notified by my client that your website has a
malicious attack using links from www.siteloki.com
against www.getyourphotosoncanvas.com. My client did not solicit these links, pay for these links or authorize any
third party to build links for them. They just appeared. The links are even
pointing to my client’s old website (same url). This is a big problem and I
don’t understand why these links exist. There are currently 6,471 links from
your domain. Please remove these links immediately or we will consider legal
action against your company. We have contacted Google on the behalf of our
client and informed them of this malicious act. I expect to see these links
removed immediately! Regards, I have submitted the site in the malware reporting section
of webmasters tools. I have searched but cannot find any documentation on how
to block this type of attack. It seems that Google failed to provide any means
for an honest website owner following the rules to block this type of attack and
as a result we have been unjustly penalized by Google with a drop to the bottom
in our page ranking. I would appreciate ANY HELP in removing these links and getting the Siteloki website blocked from linking to my website? Any Ideas?0 -
Link Building: Location-specific pages
Hi! I've technically been a member for a few years, but just recently decided to go Pro (and I gotta say, I'm glad I did!). Anyway, as I've been researching and analyzing, one thing I noticed a competitor is doing is creating location-specific pages. For example, they've created a page that has a URL similar to this: www.theirdomain.com/seattle-keyword-phrase They have a few of these for specific cities. They rank well for the city-keyword combo in most cases. Each city-specific page looks the same and the content is close to being the same except that they drop in the "seattle keyword phrase" bit here and there. I noticed that they link to these pages from their site map page, which, if I were to guess, is how SEs are getting to those pages. I've seen this done before on other sites outside my industry too. So my question is, is this good practice or is it something that should be avoided?
White Hat / Black Hat SEO | | AngieHerrera0 -
How Google deal with a Domain Buy
Hello folks, How is google dealing with those clever peoples who decide to buy a famous place on internet( domain ), to be their domain name. For example if someone buy a very well ranked domain name for some keywords in their niche, is there any punishment? Whats the bad things about buy a domain? Thanks.
White Hat / Black Hat SEO | | augustos0 -
How does Google rank a websites search queries
Hello, I can't seem to find an answer anywhere. I was wondering how a websites search query keyword string url can rank above other page results that have stronger backlinks. The domain is usually strong, but that url with the .php?search=keyword just seems like it doesn't fit in. How does Google index those search string pages? Is it based off of traffic alone to that url? Because those urls typically don't have backlinks, right? Has anyone tried to rank their websites search query urls ever? I'm just a little curious about it. Thanks everyone. Jesse
White Hat / Black Hat SEO | | getrightmusic0