Does google credit links from iFrames or created by Javascript, if so, is one more powerful than the other?
-
Consider this example, because I want to be clear about what I mean. You have two websites. Lets all them www.a.com and www.b.com.
On www.a.com/some/page, there is an iframe something like this:
<iframe src="www.b.com/some/special/path"></iframe>
Then content of this iframe is a bunch of pictures, text and numbers, as well as a group of links, linking each picture to www.b.com for example the links might be:
www.b.com/content/1
www.b.com/content/2
www.b.com/content/3Questions:
- When google crawls **www.a.com/some/page, **does it pass link juice to www.b.com/content/*?
- Does google instead consider these to be internal links within b.com itself. because links to www.b.com/content/ ** are actually from b.com itself, since the domain of the iframe is actually: www.b.com/some/special/path 3) Is there any amount of link juice passed from www.a.com/some/page to* www.b.com/some/special/path **because this is the src= element of an iframe that a.com is hosting?
Consider an alternative setup. Where instead of using an iframe the contents of the above described iFrame is actually added the the page dynamically using javascript, and a call to an API endpoint at b.com. Resulting in these links being added directly to the body of a.com without being wrapped in an iframe element.
Questions:
4) Do these links that were created after page load still get crawled and credited by google? (i have heard in the past that google was going to start crawling javascript, i just don't know if this is known for a fact yet).
5) Do links created on the client side hold the same weight as a link that was served directly via the backend html generation?- If both the links within the iframe and the links within the javascript embed method pass link juice. Is one preferred over the other? is one known to be more effective than the other?
Thanks!
-
Yeah, what you say is what i expected for iframes. It makes sense that links inside the iframe would be considered internal links within the iframe provider's domain. As the entire contents of that iframe is within the shadow dom of that provider's domain.
I also just found this article:
https://mza.seotoolninja.com/ugc/can-google-really-access-content-in-javascript-reallyWhich seems to indicate that google would crawl and recognize something like:
$('#3rd-party-content').append('');BUT only if the javascript that creates these links actually lives on the same domain i.e. not targetdomain.com!
Thanks for your help!
-
Hi there.
In short, Yes, iframes will pass link juice, but to the page, which is a source of iframe, not to pages, which are linked inside the iframe. And no, javascript created links are not passing rank flow.
When using iframe, basically what you are doing is you are pointing to the container on another website, and whatever is inside that container, it's hosted on that another website. That's why rank flows only to src link.
As for JS created links - they are considered hidden, devalued or obfuscated. Refer to this page on MOZ - https://mza.seotoolninja.com/learn/seo/internal-link
Hope this helps.
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 surfacing top blog posts with read more link could create a boost in traffic to main domain?
Hi mozzers, Because our blog is located on blog.example.com on powered by Wordpress and currently can't migrate it to the main domain, unfortunately. Since we would like to grow our main's domain organic traffic and would like to test an option that could help us leverage the traffic of the top blog posts content. There is a Wordpress API that would allow us to get 100-200 words(snippet of the blog post) from the blog posts into the main domain that would provide a "Read more link" linking back to the blog.
Intermediate & Advanced SEO | | Ty1986
Is this even a good idea assuming we would make sure content is not identical?0 -
Benefit of getting more then one link from a site?
Hi Guys, Is there any benefit (purely for SEO - link building) to getting more than one link from a domain if you already have 1? From my understanding, even if you had 100 links from a domain, that really counts as 1 for link authority. So from this, i don't see much point in getting more then 1 link. Is this a right assumption? Cheers.
Intermediate & Advanced SEO | | wozniak650 -
How Does Yelp Create URLs?
Hi all, How does Yelp (or other sites) go about creating URLs for just about every service and city possible ending with the search? in the URL like this https://www.yelp.com/search?cflt=chiropractors&find_loc=West+Palm+Beach%2C+FL. They clearly aren't creating all of these pages, so how do you go about setting a meta title/optimization formula that allows these pages to exist AND to be crawled by search engines and indexed?
Intermediate & Advanced SEO | | RickyShockley0 -
Disavow Links Notification
No manual actions on our sites, just Penguin related. I put in a disavow for one site in October and Webmaster Tools kept a message up for some time saying the disavow links file for that site had been updated. I put in a disavow for another site of ours last week and I've had no such message. I checked and the file is there. Was this an intentional change on Google's part? Just want to make sure something's not messed up here.
Intermediate & Advanced SEO | | Kingof50 -
To recover from Penguin update, shall i remove the links or disavow links?
Hi, One of our websites hit by Penguin update and I now know where the links are coming from. I have chance to remove the links from those incoming links but I am a little confused whether i should just remove the links from incoming links or disavow the links? Thanks
Intermediate & Advanced SEO | | Rubix0 -
Google lost 9,000 inbound links
I logged into GWT today. It typically reports that our page has about 9,000 inbound links, but today it said we have 225. There are no warnings or messages about any manual action. In fact, this site has never received any penalties or warnings. Since November I have used the disavow tool to remove porn links that a competitor has pointed at my site. Typically I go through Google's "new" links list and add any of the obviously bad links to the disavow list. That effort seemed to be going ok, and my site does not seem to be penalized for this negative seo. The 225 links that remain are scattered back through 2010. This site has been online since 2005 and has accumulated lots of links over the years. Some great, some not so great. Queries are down about 1500 per day since last week, about a 15% drop. There is a slight drop in some keyword rankings, but nothing huge, and most of the SERPS I track do not seem to be impacted. The PR is steady at 4, where it's been for years. So... what do you think I should do? Just watch it for a week and see if they come back? Try removing the "disavow" list just in case it some how messed things up (looks ok on the surface to me). Has this ever happened to anyone else?
Intermediate & Advanced SEO | | DarrenX0 -
Google places page related places links to competitor
I noticed on a lot of Google places pages i create for my clients Google seems to put related places links at the bottom of the page which links directly to their competitors. how can i remove control or avoid these links been placed? Also any tips on improving the places page would be greatly appreciated thanks
Intermediate & Advanced SEO | | Bristolweb0 -
Reciprocal link finder tool - not looking to do reciprocal links.
The company I work for had an old SEO company that did a lot of reciprocal links with websites that are not what we want to be associated with. Does anyone know of a tool that might be able to tell us if there are still reciprical links to our site? I want to try and find them, but the old pages we had with links going out have been deleted.
Intermediate & Advanced SEO | | b2bcfo0