مقالات سئو

اسکیما محصول (Product Structured Data) از نوع Product برای ارائه اطلاعات مفید از یک صفحه محصول مانند: نام، قیمت، موجودی، نظرات کاربران و... استفاده می کند.
این اسکیما به موتور های جستجو کمک می کند تا اطلاعات محصول را در نتایج جستجو به صورت غنی (Rich Results) نمایش دهد.
دو حالت برای اسکیما محصول قابل تعریف است:
محصول معمولی (تک محصول با ویژگی های ثابت)
محصول متغیر (محصولی با چندین نوع، مانند اندازه یا رنگ)
موضوع دیگر در استفاده از این اسکیما ها برای یک صفحه محصول سبب بهبود خزش و نمایش صفحات محصول در موتورهای جستجو مانند گوگل خواهد شد.
کد نمونه برای محصول معمولی
کد نمونه زیر برای اسکیما محصول معمولی در فرمت JSON-LD گرفته شده است:
<html><head><title>Sample Product</title><script type="application/ld+json">{"@context": "https://schema.org/","@type": "Product","name": "Sample T-Shirt","image": ["https://example.com/photos/tshirt.jpg"],"description": "A comfortable cotton t-shirt.","sku": "TS123","brand": {"@type": "Brand","name": "Sample Brand"},"offers": {"@type": "Offer","url": "https://example.com/tshirt","priceCurrency": "USD","price": "19.99","availability": "https://schema.org/InStock","itemCondition": "https://schema.org/NewCondition"},"aggregateRating": {"@type": "AggregateRating","ratingValue": "4.5","reviewCount": "200"}}</script></head><body></body></html>کد نمونه برای محصول متغیر
کد نمونه زیر برای اسکیما محصول متغیر در فرمت JSON-LD گرفته شده است:
<html><head><title>Sample Variable Product</title><script type="application/ld+json">{"@context": "https://schema.org/","@type": "Product","name": "Sample T-Shirt","image": ["https://example.com/photos/tshirt-main.jpg"],"description": "A cotton t-shirt available in multiple colors and sizes.","sku": "TS456","brand": {"@type": "Brand","name": "Sample Brand"},"offers": {"@type": "AggregateOffer","lowPrice": "19.99","highPrice": "24.99","priceCurrency": "USD","availability": "https://schema.org/InStock","offerCount": 3},"hasVariant": [{"@type": "Product","name": "Sample T-Shirt - Blue","sku": "TS456-BLUE","image": "https://example.com/photos/tshirt-blue.jpg","offers": {"@type": "Offer","url": "https://example.com/tshirt-blue","priceCurrency": "USD","price": "19.99","availability": "https://schema.org/InStock"}},{"@type": "Product","name": "Sample T-Shirt - Red","sku": "TS456-RED","image": "https://example.com/photos/tshirt-red.jpg","offers": {"@type": "Offer","url": "https://example.com/tshirt-red","priceCurrency": "USD","price": "22.99","availability": "https://schema.org/InStock"}},{"@type": "Product","name": "Sample T-Shirt - Black","sku": "TS456-BLACK","image": "https://example.com/photos/tshirt-black.jpg","offers": {"@type": "Offer","url": "https://example.com/tshirt-black","priceCurrency": "USD","price": "24.99","availability": "https://schema.org/OutOfStock"}}]}</script></head><body></body></html>چگونگی تست
کد را با ابزار Rich Results Test گوگل یا از طریق سایت schema.org بررسی کنید تا اسکیما دارای خطا نباشد و به درستی نمایش داده شود.
