Sökmotoroptimering (SEO)

Sökmotoroptimering, ofta förkortat SEO, är en digital marknadsföringsstrategi som syftar till att förbättra en webbplats synlighet och ranking i sökmotorresultat (t.ex. i Google). Det innebär att man optimerar olika delar av webbplatsen, t.ex. innehåll, social delning, webbadresser, bilder och sidhastighet.

Observera

  • Odoo tillhandahåller flera moduler som hjälper dig att bygga innehållet på din webbplats, till exempel eCommerce, Blog, eLearning, och Forum.

  • Alla Odoo teman bygger på CSS-ramverket Bootstrap för att återges effektivt beroende på enhet: stationär, surfplatta eller mobil, vilket påverkar rankningen i sökmotorer positivt.

Optimering av innehåll

För att optimera en webbsidas SEO, öppna sidan och gå sedan till Webbplats ‣ Webbplats ‣ Optimera SEO.

Optimera SEO

Observera

If you change the title of a blog post or the name of a product, the link to the related webpage is automatically updated. The old link still functions as Odoo creates a 301 redirect, maintaining the SEO.

Keywords and Meta tags

There are two types of keywords in SEO, which serve different purposes.

In-text keywords

In-text keywords appear naturally throughout a page’s visible content (titles, headings, and body text) and help search engines determine the topic and relevance of the page. These keywords have a real impact on ranking. They cannot be edited in the optimize SEO pop-up.

Viktigt

Det rekommenderas starkt att endast använda en H1-titel per sida för SEO.

Meta tags and meta keywords

Meta tags are HTML elements that provide information about a webpage to search engines and website visitors. They play a crucial role in SEO by helping search engines understand the content and context of a webpage and attract visitors with appealing content. They can be edited in the optimize SEO pop-up. There are two types of meta tags in Odoo:

  • Title-taggar anger en webbsidas titel och visas som en klickbar länk i sökmotorresultat. De bör vara kortfattade, beskrivande och relevanta för sidans innehåll. Du kan uppdatera titeltaggen på din webbsida eller lämna den tom för att använda standardvärdet baserat på sidans innehåll.

  • Description-taggar sammanfattar webbsidans innehåll och visas ofta i sökmotorresultat under titeln. De används för att uppmuntra användaren att besöka sidan. Du kan uppdatera beskrivningstaggen på din webbsida eller lämna den tom för att använda standardvärdet baserat på sidans innehåll.

Observera

Kortet Preview visar hur titel- och beskrivningstaggarna ska visas i sökresultaten. Det innehåller också webbadressen till din sida.

Meta keywords are placed in a hidden HTML tag <meta name="keywords">. Once used to describe a page’s topic, this tag is now ignored by major search engines and has little or no impact on SEO. To edit Keywords, enter the keywords you consider essential in this field and click Add to see how they are used at different levels in your content (H1, H2, page title, page description, page content) and the related searches in Google. The tool also suggests relevant keywords.

Bilder

Storleken på bilder har en betydande inverkan på sidhastigheten, vilket är ett viktigt kriterium för sökmotorer för att optimera SEO-ranking.

Tips

Jämför hur din webbplats rankas med hjälp av Google Page Speed eller Pingdom Website Speed Test.

Odoo komprimerar automatiskt uppladdade bilder och konverterar dem till Webp. Med detta filformat är bilderna mindre, vilket ökar sidans laddningshastighet och därför ger en bättre ranking i SEO. Alla bilder som används i Odoo officiella temes är också komprimerade som standard. Om du använder ett tema från tredje part kan det innehålla bilder som inte komprimeras effektivt.

För att ändra en bild från din webbplats, välj bilden, klicka på Edit, gå sedan till fliken Customize, och anpassa Format i avsnittet Image.

Viktigt

Alt-taggar används för att ge sammanhang till vad en bild visar, informera sökmotorer och göra det möjligt för dem att indexera en bild korrekt. Att lägga till nyckelord för alt-taggar i Description-fältet är viktigt ur ett SEO-perspektiv. Denna beskrivning läggs till i HTML-koden för din bild, och den visas när bilden inte kan visas.

Bild för social delning

When you share your page on social media, your website logo is selected by default, but you can search the Unsplash image library or upload any other image by clicking the (upload) button.

Tips

You can set a default social share image. Go to Website ‣ Configuration ‣ Settings in the SEO`section and tick the :guilabel:`Default Social Share Image checkbox.

Observera

  • Kortet Social Preview visar hur sidans information skulle se ut när den delas.

Indexation

Website indexation is the process by which search engines, such as Google, discover, analyze, and store information about a website’s content in their database. Search engine bots, known as crawlers or spiders, visit web pages and follow links to collect data, including text, images, and other media. The purpose of indexation is to make a website’s content searchable and discoverable to users. Without being indexed, a website or a specific page on that site will not appear in search engine results, regardless of how relevant or well-designed it is. Indexation is a fundamental step in SEO, serving as the foundation for a website’s visibility and organic traffic.

Observera

When you first create your website on Odoo, it will not appear directly in search engine results. Search engines need time to crawl and index it, which can take anywhere from a few days to several weeks. For Google, you can use the Search Console and request indexing for specific URLs, though this does not guarantee faster results. If you have an existing website and are migrating, your previous website may still appear instead of the new one during that timeframe.

SEO impact when migrating your existing website to Odoo

In most cases, migrating to Odoo will not negatively impact your SEO. While no platform can guarantee that rankings will remain unchanged, follow these best practices to significantly reduce the risk.

  • Keep your existing content.

  • Implement redirects from old URLs to their new counterparts.

  • Monitor traffic and indexation to make sure that everything is going well, using Google Search Console.

By doing this, you help search engines reindex your site and maintain your visibility in search results.

Observera

It is normal to experience a traffic decrease in the first days.

Prevent a page from being indexed

To effectively prevent a page from appearing in search engine results, use one of the following methods:

  • noindex tag: Access the page’s properties and toggle the Indexed switch off.

    Observera

    This option is not yet available for dynamic pages.

  • 404 or 403: Configure the page to return a 404 (Not Found) or 403 (Forbidden) HTTP status code. These codes signal to search engines that the page does not exist or is inaccessible, leading to its eventual removal from the index.

  • Google Search Console: Use Google Search Console to request the removal of specific URLs from Google’s index.

Prevent a website from being indexed

To prevent a website from appearing in search engine results, go to Configuration ‣ Settings, then in the Website Info section, add a random value in the Domain field. Doing so automatically inserts the following tag into the page source:

<meta name="robots" content="noindex"/>

This tag instructs search engines not to index the site. After applying the change, it may take several days or weeks for search engines to update their results and remove the website.

Example

This can be used to prevent websites from test databases from appearing in search results.

Sitemap

The sitemap points out website pages and their relation to each other to search engine crawlers. Odoo generates a /sitemap.xml file, including all URLs. For performance reasons, this file is cached and updated every 12 hours.

Observera

Om din webbplats har många sidor skapar Odoo automatiskt en Sitemap Index-fil, med respekt för sitemaps.org-protokollet, och grupperar webbadresser för webbplatskartor i 45000 bitar per fil.

Varje sitemap-post har tre attribut som beräknas automatiskt:

  • <loc>: URL-adressen till en sida.

  • <lastmod>: senaste ändringsdatum för resursen, beräknas automatiskt baserat på det relaterade objektet. För en sida som är relaterad till en produkt kan detta vara det senaste ändringsdatumet för produkten eller sidan.

  • <priority>: moduler kan implementera sin prioritetsalgoritm baserat på deras innehåll (till exempel kan ett forum tilldela en prioritet baserat på antalet röster på ett specifikt inlägg). Prioriteten för en statisk sida definieras av dess prioritetsfält, som är normaliserat (16 är standard).

Tips

To prevent pages from appearing in a sitemap, go to Site ‣ Properties, and toggle off the Indexed feature.

toggle off the “Indexed” field

robots.txt

A robots.txt file instructs search engine crawlers which parts of a website they are permitted to access. Its primary purpose is to:

  • Prevent overloading the website: By guiding crawlers away from certain sections, robots.txt helps manage server load.

  • Control access to resources and detailed descriptions: It can prevent crawlers from accessing media files (images, videos), CSS stylesheets, and JavaScript files, and from reading the content (text) of specific pages.

When indexing your website, search engines first look at the robots.txt file. Odoo automatically creates one robot.txt file available on mydatabase.odoo.com/robots.txt.

Observera

Reputable bots adhere to robots.txt; others may require blocking via Cloudflare on your custom domain.

Edit robots.txt

Genom att redigera en robots.txt-fil kan du styra vilka sidor på webbplatsen som är tillgängliga för sökmotorer. Om du vill lägga till anpassade instruktioner i filen går du till Website ‣ Configuration ‣ Settings, bläddrar ner till avsnittet SEO och klickar på Edit robots.txt.

Example

If you do not want robots to crawl the /about-us page of your site, you can edit the robots.txt file to add Disallow: /about-us.

Viktigt

While robots.txt prevents content from being crawled, it does not guarantee that a page will not be indexed. A page can still appear in search results if it is linked to from other crawled pages (indexed by ”reference”). Google generally does not recommend using robots.txt to block webpages that you wish to keep out of search results entirely.

Avancerade funktioner

Strukturerad datamarkering

Structured data markup is used to generate rich snippets in search engine results. It is a way for websites to send structured data to search engine crawlers, helping them understand your content and create well-presented search results.

Som standard stöder Google många rich snippets för innehållstyper, inklusive recensioner, personer, produkter, företag, evenemang och organisationer.

Microdata är en uppsättning taggar som introducerades med HTML5 och som hjälper sökmotorer att bättre förstå ditt innehåll och visa det på ett relevant sätt. Odoo implementerar mikrodata enligt definitionen i schema.org specification för evenemang, e-handelsprodukter, foruminlägg och kontaktadresser. Detta gör att dina produktsidor kan visas i Google med hjälp av extra information som pris och betyg för en produkt:

utdrag i sökmotorresultat

HTML-taggar

Odoo inkluderar automatiskt taggarna hreflang och x-default i koden på din webbplats flerspråkiga sidor. Dessa HTML-attribut är avgörande för att informera sökmotorer om en specifik sidas språk och geografiska inriktning.

Se även

../konfiguration/translate