How to Inject JSON-LD Schema for Your First Widget Video
Overview
To help your video content appear in Google’s video search results and boost your page’s SEO, you can inject a JSON-LD schema for your first widget video.
By simply adding jsonld="true" to your video widget, our system automatically includes video metadata that allows search engines to understand and index your video correctly.
How to Enable JSON-LD for Your Video Widget
Step 1: Locate Your Video Widget
Find the code snippet for your first video widget on the page.
Example:
<widget-video src="https://example.com/video.mp4" title="Product Overview"></widget-video>
Step 2: Add the JSON-LD Attribute
Add jsonld="true" to enable structured data injection.
Example:
<widget-video
src="https://example.com/video.mp4"
title="Product Overview"
jsonld="true">
</widget-video>
Step 3: Publish or Update Your Page
Once the page is loaded and the widget renders, the system will automatically:
-
Detect the first video widget with
jsonld="true" -
Inject a JSON-LD VideoObject schema into your page header
Example of Injected Schema