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
-
Images, CSS and Javascript on subdomain or external website
Hi guy's, I came across webshops that put images, CSS and Javascript on different websites or subdomains. Does this boost SEO results? On our Wordpress webshop all the sourcescodes are placed after our own domainname: www.ourdomainname.com/wp-includes/js/jquery/jquery.js?ver=1.11.3'
Technical SEO | | Happy-SEO
www.ourdomainname.com/wp-content/uploads/2015/09/example.jpg Examples of other website: Website 1:
https://www.zalando.nl/heren-home/ Sourcecode:
https://secure-i3.ztat.net//camp/03/d5/1a0168ac81f2ffb010803d108221.jpg
https://secure-media.ztat.net/media/cms/adproduct/ad-product.min.css?_=1447764579000 Website 2:
https://www.bol.com/nl/index.html Sourcecode:
https://s.s-bol.com/nl/static/css/main/webselfservice.1358897755.css
//s.s-bol.com/nl/upload/images/logos/bol-logo-500500.jpg Website 3:
http://www.wehkamp.nl/ Sourcecode:
https://static.wehkamp.nl/assets/styles/themes/wehkamp.color.min.css?v=f47bf1
http://assets.wehkamp.com/i/wehkamp/350-450-layer-SDD-wk51-v3.jpg0 -
Setting title tag with javascript/jquery
Hi there, I'm looking for some advice. I've recently implemented a few jQuery functions which gets specific content from the page and then sets the title and description. See working example here. It seems to work fine but my question I have is whether Google bots can read it and whether it might actually hinder my SEO efforts? Any advice would be really appreciated! Peter
Technical SEO | | peterallen0 -
Meta Refresh for No Javascript message
We're currently using meta refresh tag to check if JavaScript is enabled or not in users browsers. And if not then we redirect them to jsnotfound.aspx page: <metahttp-equiv="refresh"content="0;url= default.aspx?jse="0"/"></metahttp-equiv="refresh"content="0;url=> It's being flagged in SEOmoz tools so our developer tried solution highlighted in this Question: http://www.seomoz.org/q/meta-refresh-nojavascript-url ...but he couldn't get it to work. Is it really imperative we don't use the meta refresh for this purpose? Thanks in advance. Michael
Technical SEO | | LawrenceNeal0 -
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 -
Do the engine spiders see this javascript?
http://www.drsfostersmith.com/general.cfm?gid=259 I'm looking at building something like these banners, and wondering if the engines a) see b) value links like these in the drop-down selector? I guess I could test it but wondering if anyone else has before I do it.
Technical SEO | | ATShock0 -
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 -
How valuable or not is javascript linkback from a competitor?
A sector competitor has decided to link to me using the method[](javascript:OpenLink('http://www.example.com')) [It's a contextually rich page and the link is in the body surrounded by relevant text although not so high in the code](javascript:OpenLink('http://www.example.com')) [Moz Metrics of the page/domain linking to me are: PA 30 mR 2.67 mT4.61
Technical SEO | | PaulGaileyAlburquerque
21 links from 9 root domains
Root Domain DA 88 DmR 6.77 DmT 6.68 2.6m links from 24k domains Is the method of linking to me strictly from an SEO perspective: A. Positive
B. Neutral
C. Negative Thanks!](javascript:OpenLink('http://www.example.com'))0 -
Javascript funtion as link? Why not show up?
We joined our Chamber of Commerce for the "link" as much as anything. After 9 months of having a link from our local chamber it has never showed up anywhere. You can see the link on my Chambers page, and you can click on it and it works. But it does not show up anywhere else....Not in any backlink checker, not in SEOmoz, not in Google Webmaster Tools. When I hover over our link on their page I see "javascript:encodeclick........my url" Is this link worth anything? What is a javascriptencodeclick? Does Google know it exists and give me credit for it? Our Chamber is clueless... they hire someone to do their website. Their webmasters response to my question was: Hi, These links look like this because this is just the way our system parses URLs that are entered into the membership directory so they can be clickable when displayed in the lister. These links will not have a negative effect on Google or SEO indexing purposes if that is what you are concerned about. They are not encoded or encrypted, this just happens to be the name of the Javascript function.
Technical SEO | | SCyardman0