Shopify是自建站一個不錯的選擇,如何通過seo來提升shopify品牌站的流量呢?title和description是很重要的排名因素,但是我們發現很多商家根本就沒設置,或者每個頁面都是一樣的,這就可能錯過了很多的自然流量!那么如何設置呢?隨ytkah一起來看看吧
1、進入shopify后台Online Store > Themes.
2、找到你要編輯的模板,比如Debut,點擊右側的Actions,在彈出的下拉菜單中選edit code,如下圖所示
3、在themes的Layout下點擊theme.liquid文件
4、在<head></head>之間找到<title>
, meta name="description"
,和rel="canonical"
。canonical唯一URL的標識,如果你的頁面url帶有參數,防止被搜索引擎判定為重復頁面
5、把下面的代碼黏貼進去
<title> {{ page_title }}{% if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} – Page {{ current_page }}{% endif %}{% unless page_title contains shop.name %} – {{ shop.name }}{% endunless %} </title> {% if page_description %} <meta name="description" content="{{ page_description | escape }}" /> {% endif %} <link rel="canonical" href="{{ canonical_url }}" />
6、點擊保存
7、在Shopify管理員中,轉到在線商店>首選項(Online Store > Preferences)。
8、在標題和元描述下Title and meta description,在首頁標題和首頁元描述字段中輸入您的首頁標題和描述Homepage title and Homepage meta description。詳情參考這里shopify Homepage meta description首頁標題描述在哪里修改
9、單擊保存。
參考資料:https://shopify.dev/tutorials/develop-theme-getting-started-search-engine-optimization