Shopify – SEO

Shopify

Homepage (Top page) title

  • HTMLのhead > titleへ、{homepage title} – {Store name}が表示される
    • Online Store > Preferences > Title and meta description > Homepage title
    • Settings > General > Store detailsの最初の項目がProfileであり、Store name, Store phone, Store email を設定できる

Homepage meta description

  • HTMLのhead > meta name=”description”へ表示される
    • Online Store > Preferences > Title and meta description > Homepage meta description
    • 320文字まで

Page title and meta description

  • Online > Pages > 各ページのTitle, Meta description

Landing page title

  • HTMLのhead > titleへ、{page title} – {Store name}が表示される
    • Online Store > Pages > {page} > Edit website SEO > Page title

Sitemap.xml

  • 自動で作成される
  • products, pages, collections, blogsが登録される

robots.txt

  • 自動で作成される
  • templates/robots.txt.liquidを追加することで、上書きできる

構造化データ

  • sections/headers.liquid
<script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "MedicalOrganization",
    "name": {{ shop.name | json }},
    {% if settings.logo %}
      "logo": {{ settings.logo | image_url: width: 500 | prepend: "https:" | json }},
    {% endif %}
    "sameAs": [
      {{ settings.social_twitter_link | json }},
      {{ settings.social_facebook_link | json }},
      {{ settings.social_pinterest_link | json }},
      {{ settings.social_instagram_link | json }},
      {{ settings.social_tiktok_link | json }},
      {{ settings.social_tumblr_link | json }},
      {{ settings.social_snapchat_link | json }},
      {{ settings.social_youtube_link | json }},
      {{ settings.social_vimeo_link | json }}
    ],
    {% if page_description %}
    "description": {{ page_description | json}},
    {% endif %}
    "url": {{ request.origin | append: page.url | json }},
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "",
      "addressLocality": "",
      "addressRegion": "",
      "postalCode": "",
      "addressCountry": ""
    },
    "contactPoint": {
      "@type": "ContactPoint",
      "telephone": "",
      "contactType": "customer service",
      "areaServed": "",
      "availableLanguage": ["English"]
    }  
  }
</script>

{%- if request.page_type == 'index' -%}
  {% assign potential_action_target = request.origin | append: routes.search_url | append: "?q={search_term_string}" %}
  <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "WebSite",
      "name": {{ shop.name | json }},
      "potentialAction": {
        "@type": "SearchAction",
        "target": {{ potential_action_target | json }},
        "query-input": "required name=search_term_string"
      },
      "url": {{ request.origin | append: page.url | json }}
    }
  </script>
{%- endif -%}

関連記事

カテゴリー

アーカイブ

Lang »