Need some help with google video indexing. My videos are not being indexed because it is not on a watch page and the video is supplementary content on the product page. Any advice as how to properly embed videos so they will be indexed?
Video Indexing
Collapse
X
-
Tags: None
-
I added the following to the PROD template, waiting to see if google is going to like it:
Created a custom field called product_video_url as a public text field and added it custom field on the product display layout selection box on the PROD template.
Added the following to the PROD template before </head>
<!-- open graph for videos -->
<mvt:item name="customfields" param="Read_Product_Code( l.settings:product:code, 'product_video_url', g.product_video_url)" />
<mvt:if expr="NOT ISNULL g.product_video_url">
<meta property="og:video" content="&mvte:global:product_video_url">
<meta property="og:video:width" content="560">
<meta property="og:video:height" content="315">
<meta property="og:video:type" content="application/x-shockwave-flash">
</mvt:if>
Displayed the video by adding the following bold code to product display layout:
<section id="tab-description" class="x-a11y-tabs__panel">
&mvt:product:descrip;
<mvt:if expr="NOT ISNULL g.product_video_url">
<br/>A short video about &mvte:product:name;:
<iframe width="560" height="315" src="&mvte:global:product_video_url;" title="&mvte:product:name;" frameborder="1" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
</mvt:if>
</section>
So far, seems to work, guess time will tell if google is going to index the videos.
Comment