Javascript
-
Hi mozzers,
For my website I use various affiliate programs on commission junction. Some of the text ads are in javascript. Will google read the text ads or not?
Cheers,
Peter
-
Again, great resources, Daniel. The first link provides some empirical evidence that ajax based links do get interpreted. SEOmofo had a nice recommendation that should stop google from indexing your JS if need be. He basically said put your JS in an external file that you disallow in robots.txt.
From your second link
The search appliance only executes scripts embedded inside a document. The search appliance does not support:
- DOM tracking to support calls, such as
document.getElementById
- External scripts execution
- AJAX execution
Not exactly sure what "AJAX execution" means. However, if it means downloading JSON or JS and evaluating it that makes sense. Perhaps not external JS gets executed by google?
The third link discusses the "agreement" you can make with a crawler if you have an ajax based site using hash bang urls. Not super relevant for me but good to know so thanks!
- DOM tracking to support calls, such as
-
Thanks very much for this. Can't wait to check these resources out.
-
Yeah let me point you to some resources on this:
http://www.seomoz.org/ugc/new-reality-google-follows-links-in-javascript-4930
Your best resource is from Google here:
To your question though, I do believe Google will execute external javascript files. Ajax stuff I'm not as sure about. They have a primer on this here:
<cite>code.google.com/web/ajaxcrawling/docs/learn-more.html</cite>
The 90% thing I recall from SMX advanced last year I believe. Basically people would try to hide internal links in javascript since using nofollow for pagerank sculpting was debunked by Matt Cutts in 2009. Turned out Google could see most links being created in javascript.
You can read up on that second link there in javascript crawling from Google and it goes into a lot of detail about what they can do, hope it helps.
-
Hey Daniel,
Would you mind diving into that statement a little more? I didn't realize that Google could execute 90% of javascript. Do you think they will load in external javascript files? Does google make ajax calls?
I only ask the questions b/c I have a web site who's home page that has too many links and too much HTML. I'd love to use javascript to do some progressive rendering and keep some links and additonal HTML out of the initial HTTP response sent back when someone requests a page on our site.
Thanks in advance!
Tait
-
very helpful thanks!
-
Google has said they can execute about 90% or so of all javascript at this point, so there is a good chance Google will be able to see these affiliate links, even if they are being done in javascript.
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
-
Dynamically Inserting Noindex With Javascript
Hello, I have a broken plugin creating hundreds of WP-Content directory pages being indexed by Google. I can not access the source code of these pages to add a noindex to them. The page URL's all have the plugin name within them. In order to resolve the issue, I wrote a solution with javascript to dynamically add in a noindex tag to any URL containing the plugin name. Would this noindex be respected by Google and is there a way to immediately check that it is respected? Currently, I can not delete the plugin due to issues with it's php. If you would like to view the code: https://codepen.io/trodrick/pen/Gwwaej?editors=0010 Thanks!
Technical SEO | | Tom3_150 -
Brushing up on my SEO skills - how do I check my website to see if Javascript is blocking search engines from crawling the links within a javascript-enabled drop down menu?
I set my user agent in my Chrome browser to Googlebot and I disable javascript within my Chrome settings, but then what?
Technical SEO | | MagnitudeSEO0 -
All other things equal, do server rendered websites rank higher than JavaScript web apps that follow the AJAX Crawling Spec?
I instinctively feel like server rendered websites should rank higher since Google doesn't truly know that the content its getting from an AJAX site is what the user is seeing and Google isn't exactly sure of the page load time (and thus user experience). I can't find any evidence that would prove this, however. A website like Monocle.io uses pushstate, loads fast, has good page titles, etc., but it is a JavaScript single page application. Does it make any difference?
Technical SEO | | jeffwhelpley0 -
Hiding Duplicate Content using Javascript
We have e-commerce site selling books. Besides basic information on books, we have content for “About the book” , “Editorial Reviews”, “About the author” etc. But the content in all these section are duplicate and are available on all sites selling similar books. Our question is: 1.Should we worry about the content being duplicate?2.If yes, then will it by a good idea to hide this duplicate content using javascript or iframe?
Technical SEO | | CyrilWilson0 -
Javascript void and PageRank
Do javascript void links to on-page elements (not to a new page) consume PageRank? I'm paring down links on a client's homepage, and we have javascript void links (wrapped in <a href="">) that load videos, elements of a slider, etc. on the page itself.</a> <a href="">Basically, if I have a bunch of these, is it going to weaken the power of the other links on the page?</a>
Technical SEO | | LCNetwork1 -
Can Google read text in Javascript?
We have just completed the redesign of our product page, which you can see here: http://www.uksoccershop.com/p-19045/2011-12-Chelsea-Adidas-Away-Football-Shirt.html Because we want the select size / add to basket section to appear prominently, you can see we are showing only a snippet of the product description in this section and then user has to click "more" to see it. My question is, can Google read the product description here since it's in Javascript? The code is as follows: 2011-12 Chelsea Adidas Away Football Shirt £44.99 Item Code:379606 Brand new, official Chelsea away shirt for the 2011/12 Premiership season, available to buy in adult sizes S, M, L, XL, XXL, XXXL. This football shirt is manufactured by Adidas and is black in colour.[ More...](javascript:void(0);) Brand new, official Chelsea away shirt for the 2011/12 Premiership season, available to buy in adult sizes S, M, L, XL, XXL, XXXL. This football shirt is manufactured by Adidas and is black in colour. Cheer on the Blues in style in the new adidas Chelsea Away Shirt, featuring a striking blue blocked design on an imposing black background complete with the club crest and adidas logo embroidery across the chest for a great style on or off the pitch. The new Chelsea Away Shirt is designed with adidas' ClimaCool technology to bring moisture away from your skin, keeping you cool, comfortable and performing at your best as you emulate the skills of Frank Lampard, Fernando Torres and John Terry on the pitch. Customise your shirt with Premiership shirt printing for your favourite Chelsea stars or choose your own custom name and number. Adult Football Shirt
Technical SEO | | ukss1984
Short sleeves soccer jersey
Chelsea club crest to left chest
adidas logo and stripes
Print sponsor to centre
ClimaCool technology
Machine washable Product code: 379606 The 2011/12 Chelsea away football kit is released on 7th July 2011. <form name="currenychange" action="http://www.uksoccershop.com/p-19045/2011-12-Chelsea-Adidas-Away-Football-Shirt.html" method="get">
<select class="topselectbox" onchange="this.form.submit();" name="currency" style="float:right;"> <option value="USD">US Dollars</option> <option value="EUR">Euro</option> <option value="GBP" selected="selected">UK Sterling</option> <option value="AUD">Australian Dollars</option> </select>
</form> Available Now [Be the first to ask a question](javascript:void(0); "Ask a Question")
[Be the first to review this product](javascript://) Rating: 5 out of 5 stars <form name="cart_quantity" action="http://www.uksoccershop.com/p-19045/2011-12-Chelsea-Adidas-Away-Football-Shirt.html?number_of_uploads=0&action=add_product" method="post" enctype="multipart/form-data"> Which parts of this is Google going to be able to read? Should we make the product title our H1 header for this page and can it currently read that within the code above? </form>0 -
Developing a drop down menu: Do I use javascript or pure css?
I am developing a drop down menu and am trying to decide if using javascript instead of just css is worth it. I've done some research on the topic and the opinions seem dated. I know that at one time not using javascript for a drop down menu was important but now less so. Google constantly says that they will not discount the links just because they are not shown until javascript is ran. What I want to know is has anyone discovered from testing that using javascript instead of css for a drop down makes a difference? Note: the links will not be located in an external javascript file.
Technical SEO | | seozachz0 -
Is use of javascript to simplify information architecture considered cloaking?
We are considering using javascript to format URLs to simplify the navigation of the googlebot through our site, whilst presenting a larger number of links for the user to ensure content is accessible and easy to navigate from all parts of the site. In other words, the user will see all internal links, but the search engine will see only those links that form our information hierarchy. We are therefore showing the search engine different content to the user only in so far as the search engine will have a more hierarchical information architecture by virture of the fact that there will be fewer links visible to the search engine to ensure that our content is well structured and discoverable. Would this be considered cloaking by google and would we be penalised?
Technical SEO | | JohnHillman0