Creators

Create Google Structured Data for Videos

Create Google Structured Data for Videos

Make sure your videos are set up for success on search

Google's Structured Data is a great way to organize your content for Google's indexing. Using structured data to create a well-organized site can improve your search engine optimization efforts. RebelMouse, in particular, has the right tools to make sure your site is making the most of structured data.

The story is no different when it comes to the structure of your video data. The following is a look at what the setup looks like in our Layout & Design tool:



How to Create Google Structured Data for Videos

First, add a Conditional Content element that triggers when a post type equals video. Then, create a Custom HTML element and click into its Code card:

Next, add the following code snippet:

<if test="post.type=='video'"></if>

Then, click Apply .

Now add an Ad Header Code element , which works with Jinja . This is what will enable us to add structured data to our posts with videos. A regular Header Code element , by contrast, does not work with Jinja.

Finally, write the needed JSON-LD code using information from a video post. The required fields are taken from Google's Developers documentation . For example:

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "{{ post.headline|safe }}",
"thumbnailUrl": ["{{ post.image|safe }}"],
{%- if post.meta_description %}
"description": "{{ post.meta_description|safe }}",
{%- endif %}
"uploadDate": "{{post.created_date}}",
"embedUrl": "{{post.video}}",
"url": "{{ post.post_url }}"
}
</script>

It's a good idea to put your structured data into a B test to ensure it's working properly. If you have any questions about this feature, email support@rebelmouse.com or contact your account manager today.

What Is RebelMouse?
Request a Proposal

Where
Websites Are Built

The Fastest Sites in the World Run on RebelMouse

Let’s Chat

new!

RebelMouse Performance Monitoring

Real-Time Core Web Vitals

Get Started
DISCOVER MORE

Our Core Features

Our platform is a complete digital publishing toolbox that's built for modern-day content creators, and includes game-changing features such as our:

Why RebelMouse?

Unprecedented Scale

RebelMouse sites reach more than 120M people a month, with an always-modern solution that combines cutting-edge technology with decades of media savvy. And due to our massive scale, 1 in 3 Americans have visited a website powered by RebelMouse.

120M+ Users
550M+ Pageviews
17+ Avg. Minutes per User
6+ Avg. Pages per User

Today's Top Websites Use RebelMouse

Thanks to the tremendous scale of our network, we are able to analyze a wealth of traffic data that informs our strategies and allows us to be a true strategic partner instead of just a vendor.

What Clients Say

We’re here to help you weigh and understand every tech and strategic decision that affects your digital presence. Spend less time managing everything yourself, and more time focused on creating the quality content your users deserve.

Case Studies

A Team Built Like No Other

RebelMouse employs a unique, diverse, and decentralized team that consists of 70+ digital traffic experts across more than 25 different countries. We have no central office, and we cover every time zone to ensure that we’re able to deliver amazing results and enterprise-grade support around the clock.

Our team is well-versed in all things product, content, traffic, and revenue, and we strategically deploy ourselves to help with each element across all of our clients. We thrive on solving the complex.

Let's Chat