Google Merchant Center Nedir?
Google Merchant Center, ürünlerinizi Google Alışveriş (Google Shopping), Google Arama ve Google Görseller'de ücretsiz veya reklamla listelemenizi sağlayan platformdur. E-ticaret sitenizin satışlarını artırmanın en etkili yollarından biridir.
1. XML Ürün Feed'i Oluşturma
<?php
header('Content-Type: application/xml; charset=utf-8');
$products = get_all_products();
?>
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>Eka Sunucu Ürünleri</title>
<link>https://kodlaver.com</link>
<?php foreach ($products as $p): ?>
<item>
<g:id><?= $p['id'] ?></g:id>
<g:title><?= htmlspecialchars($p['name']) ?></g:title>
<g:description><?= htmlspecialchars($p['desc']) ?></g:description>
<g:link><?= $p['url'] ?></g:link>
<g:image_link><?= $p['image'] ?></g:image_link>
<g:price><?= $p['price'] ?> TRY</g:price>
<g:availability>in_stock</g:availability>
<g:condition>new</g:condition>
<g:brand>Eka Sunucu</g:brand>
<g:google_product_category>Software</g:google_product_category>
</item>
<?php endforeach; ?>
</channel>
</rss>
2. Schema.org Product Markup
$schema = [
'@context' => 'https://schema.org',
'@type' => 'Product',
'name' => $product['name'],
'image' => $product['image_url'],
'description' => $product['description'],
'brand' => [
'@type' => 'Brand',
'name' => 'Eka Sunucu',
],
'offers' => [
'@type' => 'Offer',
'price' => $product['price'],
'priceCurrency' => 'TRY',
'availability' => 'https://schema.org/InStock',
],
];
echo '<script type="application/ld+json">'
. json_encode($schema, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)
. '</script>';