Moving Code for Faster Crawl Through?
-
What are best practices for moving code into other folders to help speed up a crawling for bots? We once moved some javascript from an SEO's suggestion and the site suddenly looked like crap until we undid the changes. How do you figure our what code should be consolidated? What code do you use to indicate what has been moved and to where?
-
Yes, I misread your post.
Best,
Christopher -
But isn't this really for things like Google Analytics code? The code I am talking about is stuff like CSS and Javascript that could be in external files but are not currently.
-
But isn't this really for things like Google Analytics code? The code I am talking about is stuff like CSS and Javascript that could be in external files but are not currently.
-
Have you considered using Google Tag Manager? It's much cleaner, and the scripts run asynchronously to speed up page load times.
Best,
Christopher
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
-
301 vs 410 for subdirectory that was moved to a new domain, 2-years later
Hi all, I've read a lot about 301 vs 404 and 410s, but the case is pretty unique so I decided to get some feedback from you. Both websites are travel related but we had one destination as a subdirectory of the other one (two neighboring countries, where more than 90% of business was related to the 'main' destination and the rest to the 'satellite'). This was obviously bad practice and we decided to move the satellite destination to its own domain. Everything was done 2 years ago and we opted for 301s to the new domain as we had some good links pointing to satellite content. (All of the moved content is destination specific and still relevant) Few weeks back we figured out that google still shows our subdirectory when doing specific 'site:' search and looking further into it, we realized we still get traffic for satellite destination through the main website via links acquired before the move. Not a lot of hits, but they still sporadically occur. A decision was made (rather hastily) to 410 pages and see if that will make satellite subdir pages not show in google searches. So 3 weeks in, 410 errors are climbing in GWMT, but satellite subdirectory still shows in google searches. One part of the team is pushing to put back in place 301s. The other part of the team is concerned with the 'health' of the main website as those pages are not relevant for it, and want them gone . What would you do?
Intermediate & Advanced SEO | | halloranc0 -
Trying to pinpoint why 1 keyword moved down 100 positions in 2 weeks. Help me speculate?
Hi there, One of my client's sites, a very large and successful ecommerce website with great SEO performance, has seen a significant drop in rankings in the past 2 weeks. The rankings have begun to somewhat stabilize today, except one particular keyword with a search volume of 74k has gone from 1 to 100. Here is what has taken place in 2 weeks, sitewide: I revised and improved upon title tags and meta descriptions to make them more user-friendly and contain more optimized terms. Following all of Google's best practices, as always. Google still appears to be indexing these changes (has anyone seen an initial drop in rankings while this takes place?) The site has seen a very significant increase in 404 errors due to one feature of the site breaking. We got a message about it in Webmaster Tools, and this appears to coincide with when overall rankings dropped. The development team is working quickly to get this resolved. As of today, I am seeing the highest page-load time than any other day in 2015. With regard to the particular page/keyword in question: The keyword is no longer "exact match" at the beginning of the title tag, but rather broken up throughout the title tag so the whole title sounds better for users. **Have you found that this type of change is sufficient for a keyword rank to move down ~100 positions?? **(Either way, I have asked the client to revise the title to start with the exact match keyword, once again.) Google has indexed the page 2 days ago, but is still displaying the old title tag in search results. I have not found any instances of internal or external links to this page being removed. With all this information, does anyone see anything that seems like it could have reasonably caused such a huge tank in rankings? Is this a blip in time? Is there anything I am not considering? Should I just be patient?
Intermediate & Advanced SEO | | FPD_NYC0 -
Magento E-Commerce Crawl Issues
Hi Guys, First post here! I am responsible for a Magento e-commerce store and there are a few crawl issues and potential solutions that I am working and would like to get some advice to see if you agree with my approach. Old Product Pages - The majority of our stock is seasonal, therefore when a product sells out, it is not usually going to come back into stock. However the approach for Magento websites is to leave the page present but take the product off the category pages, so users can still find these pages from the search engines and they are orphaned pages as not linked to from elsewhere and not totally clear products are out of stock (just doesn't show the size pulldown or 'Add to Basket' button). There is no process in place to 301 redirect these pages either. My solution to this problem is to: 1. Change design of these pages so a clear message is shown to users that the product is out of stock and suggest related products to reduce bounce rates. I was also planning on having a link from an 'Out of Stock' page on the site to these products so they are orphaned but is this required do you think? 2. When I know for sure (e.g. over a month) that the product will not be returned (e.g. refund) by the user, then 301 redirect the product pages back to category page. How do other users 301 redirect their pages in Magento, I would like an easy to use system. Crawl Errors Identified in Google Webmaster Tools It seems in the last 2 weeks there has been a sharp increase in the number of soft 404 pages identified on the website. When I inspect these pages they seem to be categories and sub categories that no longer have any products in them. However, I don't want to delete these pages as new products might come in and go onto these category pages, therefore how should I approach this? A suggestion I have thought of is to put related products on to these pages? Any better ideas? Thanks, Graeme
Intermediate & Advanced SEO | | graeme19940 -
Will a disclaimer affect Crawling?
Hello everyone! My German users will have to get a disclaimer according to German laws, now my question is the following: Will a disclaimer affect crawling? What's the best practice to have regarding this? Should I have special care in this? What's the best disclaimer technique? A Plain HTML page? Something overlapping the site? Thank you all!
Intermediate & Advanced SEO | | NelsonF0 -
Code to change country in URL for locale results
How do I change the code in my URL to search in Google by specific location?
Intermediate & Advanced SEO | | theLotter0 -
Do you have to disclose an affiliate code?
If I put an affiliate code, which will get me commission if someone purchases after clicking my link, do I have to disclose it is an affiliate code?
Intermediate & Advanced SEO | | StreetwiseReports0 -
How to move website to new domain?
We have a website that has run under the same domain name for the past 10 years. We have built up a decent amount of SEO "mojo" (and traffic) over time, however, the original domain name no longer applies to the business model. A little over 1 year ago we started using a new brand name for the website and created a landing page for that domain name. Everything on that landing page links over to pages on the original domain name (to preserve the SEO value that we have built up over the years). We would like to move all (or most) of the pages/content to the new domain name. Would using 301 redirects be the safest, most effective way of doing this? I have heard of other people doing it this way, and often they will see their traffic drop for a few weeks before it eventually comes back. Anyone else had experience with this? What worked? What didn't? Thanks!
Intermediate & Advanced SEO | | seo-mojo0