Ultimate Laravel SEO guide in 2020


Laravel is a popular open-source php framework in php community. Doing SEO in Laravel is not quite easy like CMS (WordPress, Drupal, Zoomla and etc). In Laravel, we have to make the system for doing off-page SEO, site speed optimization and etc by our own way, but if we do in a proper and guided way then it will help us to improve our website SEO. As a result, we'll get more and more free and organic traffic that will help us to rank our website in search engine. We can easily reach our targeted audience. If you are laravel developer and looking for an ultimate step by step SEO guide for the beginner that helps you to improve your laravel made website SEO then I'm here to tell you an ultimate guideline for Laravel SEO which help you in 2020.

 

Table of Contents

  • What is SEO?
  • Why SEO needed?
  • Guidelines that help you to improve your laravel website SEO.

 

What is SEO?

SEO - Search Engine Optimization is a set of process & strategy for getting free organic visitors to your website by a search engine like Google, Yahoo, Bing, Yandex, Baidu etc.

 

Why SEO needed?

Basically, after deploying our developed Laravel application or website, we pay for online advertising, social share and offline marketing to reach our targeted audience. It is not the permanent solution to reach our targeted audience because when we off the advertising, offline marketing and social sharing then our audience will automatically decrease. What if our targeted audience will come to our site naturally by searching with the Search engine with free of cost! That's why we need SEO to reach to our audience lifetime with free of cost.

 

Guidelines that help you to improve your laravel website SEO

To improve your Laravel website SEO, I'll separate my guide into two parts. First, Factors that inside our website (on-page SEO) and another part is Factors that outside our websites (Off-page SEO).

 

On-page SEO - Factors that inside our website

  • Design a standard website layout.
  • Use meta tags on pages.
  • Keyword research
  • Write good and unique content.
  • Improve website speed.
  • Sitemap generation.
  • Make AMP pages.
  • Deploy the website to a good speed server.
  • Use SSL certificate for HTTPS

 

Design a standard website layout.

Design your website layout with standard format and keep responsive. Your website must be responsive because nowadays most of the user visit website on their mobile. Keep your website navigation easy so that visitor can easily navigate your website and get information quickly. It's also important to balance the colour usages on your website. Use your text colour soft and easily visible to the user. During the site markup, it's best practice to follow the w3c standards.

 

Use meta tags on pages

Add meta-tags in website pages. The meta tags help the search engine to get the information about your website page. Keep the page title not very big or small. Use the meta keywords tag for using the proper and relevant keyword of your webpage content and use the meta description with proper keyword to write a summary of the page. It's good practice to keep your meta description in 156 characters. If you write bigger meta description then it'll be automatically truncated by SERP so the visitor will not get the overview of your page.

<head>
	<title>A awesome title about post</title>
	<meta name="description" content="A summary about of webpage content">
</head>

Read the post on How to generate dynamic SEO meta-tags on Laravel website?

Use canonical link inside the head tag to avoid duplicate content that may affect your SEO rankings.

<link rel="canonical" href="http://example.com/" />

 

Keyword Research

Before writing a post on a certain topic, it's very important to research on that topic. What is the search volume of that topic (means how many peoples are looking for that topic), what is the SEO difficulties and what are the related keywords that people also search for getting a post on a topic. Keyword research very important because before making content you must think about what is the query of a visitor in search engine unless your content not reaches to the visitor.

For example, If we want to write an article about COVID 19 then we have to research what are the information people finding of COVID 19, what are the related phrases that people also interested. The related search keyword might look like below.

COVID 19 symptoms, COVID 19 Prevention, COVID 19 treatments, COVID 19 news etc

You can use google search result for getting keyword idea as a beginner without spending money in a paid keyword research tool. If you search a term on Google you will get more searching term at the end of the result page. List out those related search keyword also. After making the keyword list then write the post on your desired topic by combining your listed keyword into the post.

 

Write good and unique content

Search engine always loves unique & quality content. Unique & good contents are a big factor among the other SEO ranking factors because user comes to your website to read useful content and the content help the search engine to decide what is the content about and provide the actual users who are searching the relevant content throw search engine. So here the rule is, do not still content from others and write good quality and unique content.

 

Improve website speed

Website speed is a big factor to keep your visitor on your website. You must concern about your website loading speed. Because most of the user leaves from the website if it is not loaded within 3 seconds. Here is a details post on how to speed up your Laravel website.

 

Sitemap generation

The sitemap is a minimap of your website. It helps the user to get a total overview of your website and how they find the proper information they looking for. A simple sitemap example is given below.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <url>
      <loc>http://www.example.com</loc>
      <lastmod>2020-01-01</lastmod>
      <changefreq>daily</changefreq>
      <priority>0.8</priority>
   </url>

   <url>
      <loc>http://www.example.com/abc</loc>
      <lastmod>2020-01-02</lastmod>
      <changefreq>daily</changefreq>
      <priority>0.8</priority>
   </url>

   ...
   ...
</urlset>

To generate a sitemap of your laravel website, please read post on Generate dynamic sitemap in Laravel.

 

Make AMP pages

AMP (Accelerated Mobile Pages) is open-source webpage speed loading technology developed by Google that helps you to load your webpages instantly so your website user will get better browsing experience. It helps you to gain more organic traffic because people love the webpages which deliver useful content with fast loading webpages. Making AMP pages of your current Laravel website is not a big deal you can do it with few simple steps. Here details post on Laravel AMP optimization.

 

Deploy the website to a good speed server

Again speed is a matter because if your website has a lot of useful content but loading speed is poor then user leaves from your website and it'll decrease SEO ranking due to high bounce rate, your site loses organic traffic. Along with a speedy website, a good speed server is also important to deliver content to your visitors for fast request response time. So, deploy your website to a good speedy web-server rather than not running behind a cheap poor webserver. As a result, your website load faster and website visitors get a better speed browsing experience. Here the main message is to choose a good web hosting service provider that provides you with a high availability web server with speedy request handle capability.

 

Use SSL certificate for HTTPS

Use SSL certificate to secure your website usage data. HTTPS helps you to protect data privacy and user feels safe on your site. You can use either free SSL certificate like Lets Encrypt, Cloudflare free SSL or a paid SSL. The free SSL suitable for blog, article, news, magazine website if the site does not make any financial transactions. If your website makes financial transactions then you must have to purchase a paid SSL for that.

 

Off-page SEO - Factors that outside our website

  • Submit sitemap to search engine.
  • Enable Google analytics.
  • Social media sharing.
  • Link building.

 

Submit sitemap to search engine

Sitemap submission is an important task. Create a Google Search Console account, verify and submit your sitemap URL. Submit your website sitemap in Bing, Yahoo, Yandex search engine also.

sitemap-submit.png

 

Enable Google analytics

To monitor your site traffic it's important to add Google analytics in your website. It helps you to monitor where your visitors come from, what is your organic search traffic, what is bounce rate and a lot of important information about your website traffic that information definitely help you to improve your SEO strategy and rank on the search engine.

Add google analytics to Laravel Website

  • Create an account with Google analytics
  • Verify your site.
  • Goto Admin > Property > Tracking info and get your tracking code.

google-analytics-tracking-code

  • Place tracking code into your site template at the bottom of your website before the closing of the body tag. Example analytics tracking code given below.
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-012782378-1"></script>
<script>
     window.dataLayer = window.dataLayer || [];
     function gtag() {
         dataLayer.push(arguments);
     }
     gtag('js', new Date());
     gtag('config', 'UA-012782378-1');
</script>
<!-- End Google Analytics -->

</body>

 

Social media sharing

Share your site content to social media like Facebook, Twitter, Instagram, Linkedin, etc. If they love your content, they will share your content and comes back to your site later for getting helpful content from your website. It's very much important to share your content to your fan page and relevant groups only. So that it'll create value for people and you will get more engaging visitor from social sharing with less bounce rate.

 

Link building

In a word, Link building means getting links from others website to your website. When any website usages your website link in an anchor text link by their blog, article post and people clicked on that link, they back to your website. It calls back-link. It's a very important factor for SEO. Get backlink from another site is difficult when your website is beginning stage. You must have to create useful and unique content for the visitor. So another website might link your website into their website if they think it's also valuable for their visitors. For getting back-link, you can post the useful article to another relevant website as a guest post by mutual contact with the site owner, you can make any useful open-source tool, resources using your website brand name so that people will talk about your tool, resources into their website by referencing your website. During link building keep these things in mind given below.

  • Make back-link only the relevant website. For example, if your website is marketing about then always try to build a link from marketing related website.
  • Try to get a link from high authority and trusty website.

 

SEO is a big term. There are so many ways and strategies for getting good rank on search engine and get more organic traffic on a website but with this post, I have tried with my best for making this post useful for beginners who are looking for a beginner step by step guideline for their Laravel made website SEO. Hope you'll get this post helpful.

 

 

Share on



Related Post - Latest Post


Laravel Barcode generation tutorial

Generate SEO friendly URL in Laravel

Dynamic SEO meta-tags in Laravel website

Generate dynamic sitemap in Laravel - SEO