Schema markup for electronics accessories
Schema markup for electronics accessories
Use Product for each accessory, with the brand, GTIN and MPN from the box, the key specs as values with units, and isAccessoryOrSparePartFor naming each device it fits. Compatibility is the question behind “does this work with my laptop?”, and that property is schema.org's way of answering it.
The type to use
Product
Product with isAccessoryOrSparePartFor describes an accessory and what it's for. The business is an ElectronicsStore if customers can visit, otherwise an OnlineStore.
Product on schema.orgWhat to include
The properties that matter for electronics accessories
Most important first. Fill in what's true for you and leave out the rest; every value must also be on the page.
- isAccessoryOrSparePartFor
- Each device it fits, as a Product with its name and brand, matching the compatibility list on the page model for model.
- gtin12
- The barcode on the packaging, copied from each version's own box.
- mpn
- The manufacturer's part number, which buyers often copy from an old box or a spec sheet and search directly.
- brand
- The accessory's maker, as printed on the packaging.
- additionalProperty
- Output wattage, ports and charging standard, as values with unit codes where there is one (WTT for watts).
- name
- Brand, type, key spec and connector: “Voltline 65W USB-C GaN Charger, 2-Port”.
- offers
- Price, stock and NewCondition for the boxed item; open-box units get offers of their own.
- image
- The product, its ports close up, and what's in the box, so “is a cable included?” is answered at a glance.
Example
Copy, then make it yours
This is the markup for a made-up business. Replace every value with your own before you use it.
- Change every name, address, number and link to your own, and delete lines that don't apply.
- Paste it into your site's header code (website builders call it “code injection” or “custom code”), or let ShopCited add it for you.
- Check it with Google's Rich Results Test or the Schema Markup Validator.
Product JSON-LD
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Voltline 65W USB-C GaN Charger, 2-Port",
"description": "A 65W wall charger with two USB-C ports: 65W from one port, or 45W and 20W shared across two. USB Power Delivery 3.0. Cable not included.",
"image": [
"https://www.example.com/images/voltline-65w.jpg",
"https://www.example.com/images/voltline-65w-ports.jpg"
],
"sku": "VL-GAN65-2C",
"mpn": "VL65C2-BLK",
"gtin12": "062714809324",
"brand": {
"@type": "Brand",
"name": "Voltline"
},
"additionalProperty": [
{
"@type": "PropertyValue",
"name": "Maximum output",
"value": 65,
"unitCode": "WTT"
},
{
"@type": "PropertyValue",
"name": "Ports",
"value": "2 x USB-C"
},
{
"@type": "PropertyValue",
"name": "Charging standard",
"value": "USB Power Delivery 3.0"
}
],
"isAccessoryOrSparePartFor": [
{
"@type": "Product",
"name": "Nimbus Book Air 13 (2024)",
"brand": {
"@type": "Brand",
"name": "Nimbus"
}
},
{
"@type": "Product",
"name": "Nimbus Book Pro 14 (2023)",
"brand": {
"@type": "Brand",
"name": "Nimbus"
}
},
{
"@type": "Product",
"name": "Corvo Tab 11",
"brand": {
"@type": "Brand",
"name": "Corvo"
}
}
],
"offers": {
"@type": "Offer",
"url": "https://www.example.com/products/voltline-65w-usb-c-charger",
"price": "59.99",
"priceCurrency": "CAD",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
}
}
</script>Watch out
Mistakes electronics accessories make with markup
“Universal” instead of a device list
“Works with most laptops” can't be checked by anyone. Name the devices by model and year, the way their makers name them.
The phone maker as the case's brand
A case made to fit a phone isn't made by the phone's maker. The case maker is the brand; the phone goes in isAccessoryOrSparePartFor.
One barcode copied across pack sizes
The single cable and the two-pack have different barcodes. Copying one onto both muddles stock and price for each.
Also worth adding
- ElectronicsStore: On your contact page, with your shop's address and hours if customers can come in.
- MerchantReturnPolicy: Once in your shop's markup with the return window, plus a product-level policy for items you can't take back once opened.
FAQ
Electronics accessories: markup questions
Type to search these questions, or ask anything about getting found on Google and AI.
My compatibility list has 40 devices. Do all of them go in the markup?
Yes, if they're all on the page; that's what the property is for. On the page, group a long list by device maker so people can find theirs quickly.
Can isAccessoryOrSparePartFor point to a device I don't sell?
Yes. It names the device the accessory fits, whoever sells it; a name and a brand are enough, with no price or offer.
How do I mark up open-box and refurbished stock?
Give those units their own offers with itemCondition set to UsedCondition or RefurbishedCondition, their own price, and a line on what's been checked. Don't let them share the new item's offer.
More for electronics accessories
- SEO and AI search for electronics accessory storesMake it unmistakable which devices each accessory fits — with GTINs, specs and return terms that search engines can read.Read
- Questions your website should answerWhat customers ask Google and AI assistants about electronics accessories, and what a good answer includes.Read
Someone is asking for your product right now.
Check your store free, then press Optimize. Back to the orders.