Internal searches using AJAX affects SEO?

Internal searches using AJAX affects SEO? - Google Search Console is a free application that allows you to identify, troubleshoot, and resolve any issues that Google may encounter as it crawls and attempts to index your website in search results. If you’re not the most technical person in the world, some of the errors you’re likely to encounter there may leave you scratching your head. We wanted to make it a bit easier, so we put together this handy set of tips about seo, google-search, javascript, ajax to guide you along the way. Read the discuss below, we share some tips to fix the issue about Internal searches using AJAX affects SEO?.Problem :


I have read in some sites that is a good practice for SEO to use URLs like www.example.com/params-for-your-search as words separated by hyphens.



I'm creating a SPA ReactJS Application where I have a list of elements that can be filtered or searched by tags. So, when the user selects a tag, the application does an AJAX request and get the filtered elements.



But as I'm using AJAX (Axios library), the URL does not change, it is always something like www.example.com, no matter what filter you are applying.



What is the best coding SEO practice when you are programming "internal" searches?



It is better to change my URL, setting the selected tags separated by hyphens? What would be the best way to do it in react?


Solution :

Google will only ever reward for content that appears on page load. It's not a user, it won't fill in forms, it won't click checkboxes and so on, therefore, you need to make the search results accessible by a URL.



Google used to use AJAX _escaped_fragment_ but now it uses #!.



Examples:




  • www.example.com/#!/search-term/

  • www.example.com/#!search-term.



Then you need to ensure that Google can see these URLS, this can be done in the sitemap but ideally, include them in easy to read JavaScript. Then you test those URLS using the Google Fetch and Render, ensuring that Google can see the extra content.


If the issue about seo, google-search, javascript, ajax is resolved, there’s a good chance that your content will get indexed and you’ll start to show up in Google search results. This means a greater chance to drive organic search traffic to your site.

Comments

Popular posts from this blog

Is it possible to outrank Google for a search term on their own search engine?

Google Search results not showing up

How to over take brand keywords in Google SERP?