반응형
목적
내부 사이트의 데이터를 더 잘 긁어가도록 주요 데이터를 봇에게 직접 제공
데이터 전달 방식이 여러개 있으나 현재는 구조화된 데이터로 전달
방식1
참고
import { ProductJsonLd } from "next-seo";
<ProductJsonLd
productName="Executive Anvil"
images={[
'https://example.com/photos/1x1/photo.jpg',
'https://example.com/photos/4x3/photo.jpg',
'https://example.com/photos/16x9/photo.jpg',
]}
description="Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height."
brand="ACME"
color="blue"
manufacturerName="Gary Meehan"
manufacturerLogo="https://www.example.com/photos/logo.jpg"
material="steel"
slogan="For the business traveller looking for something to drop from a height."
disambiguatingDescription="Executive Anvil, perfect for the business traveller."
releaseDate="2014-02-05T08:00:00+08:00"
productionDate="2015-02-05T08:00:00+08:00"
purchaseDate="2015-02-06T08:00:00+08:00"
award="Best Executive Anvil Award."
/>
방식2
참고
import Script from 'next/script'
<Script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify({
"@context": "http://schema.org",
"@type": "Product",
"description":'',
"name":'',
"manufacturer":'',
"sku":'',
"mpn":'',
"brand":'',
"offers":{
"@type":"",
"availability":"",
"price":"",
"priceCurrency":"",
"url":`${window.location.href}`,
"inventoryLevel":"",
"seller":{
"@type":"",
"name":""
},
},
})
}}
/>
반응형
'대용량 처리' 카테고리의 다른 글
왜 프론트, 서버, 디비 분산해서 배포하는지 (0) | 2021.12.01 |
---|---|
라라벨)queue (0) | 2021.11.19 |
대용량 처리 (0) | 2021.11.18 |