-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Search Indexing - Video is not the main content of the page #6210
Comments
Google bot seems to fail to load the HLS player (which is a non-sense). Trying to fallback to raw HTML element using c4a0621 Hope it will fix the issue (have to wait deploy on peertube2.cpy.re and re-schedule a google bot indexation) |
Seems like to fix the issue 👍 |
Should be fixed in next peertube release (6.1.0) |
I think I found a solution but I don't know if it is right or wrong But I don't know if this method will solve the problem Video placement Whether the page is a playback page for a single video (Video is main content on the page), or hosts additional meaningful content or videos (Video is supplementary content on the page). |
This issue seems to be still present in 6.1.0. I've tried enabling/disabling web video, HLS with P2P support, and it doesn't seem to matter too much, as it still gives the "video is not the main content of the page" error: ![]() Below is the JavaScript console error messages as shown in Google Search Console for a sample page (https://trailers.ddigest.com/w/1ZcXuBacku4tZeY7KPHwPF), including it in case it helps: ![]() |
It's a nonsense, sometimes Google considers the video is not the main content on the page, and a few days later it correctly indexes the video. I'll look into it again, but if anyone here has a any clue, here don't hesitate to share it |
This thread might shed some light, and I think there's a really stupid fix for all of this involving adding the word "video" to the URL: There are only 4 videos on my site that have been indexed and the URL that is indexed is like this: https://trailers.ddigest.com/videos/watch/218beda6-427d-4ba5-83ad-d815cd13fbc6 Whereas all the ones not indexed is like this: https://trailers.ddigest.com/w/jtdUAPbo65bNgz4Momxmm4 I wonder if a separate Google sitemap can be created that uses the "video/watch" URL structure as opposed to the "w/" one. For now, Google doesn't seem to care if the first one redirects to the second one. |
I've set up a cron job to create a version of the sitemap to be a workaround for this issue. The script basically replaces "https://trailers.ddigest.com/w/" with "https://trailers.ddigest.com/videos/watch/" in the sitemap, and then replaced the submitted sitemap in Google Search Console with this newly edited sitemap. This seems to work and videos are now being indexed, even though it shouldn't (as I'm submitting pages with redirects): ![]() |
@DVDGuy99 Coming to the news: does google index all your videos with the new |
@Chocobozzz Yes, pretty much. It doesn't seem to re-add the videos that have already been indexed, even if they've been submitted via the sitemap. I'll try to force the reindexing (via the request indexing feature in Google Search Consoles) on a couple of older ones to see if they are also added/re-added. |
The older videos I've requested reindexing for have also been indexed as videos (moved out of the "Video is not the main content of the page" category), as have all the new videos that are included in my modified sitemap. |
Unfortunately it doesn't work on my side, indexing https://framatube.org/videos/watch/gW6BUFLNSDWWZwUzZBXLoN instead of https://framatube.org/w/gW6BUFLNSDWWZwUzZBXLoN is refused by google because of the redirection. I'm surprised it works on your instance 🤔 |
It's definitely a weird situation with Google at the moment, and I'm thinking it has to be a bug or something. I have several videos where, as you said, the page won't get indexed because it's a redirect, but the video (with the "/videos/watch/" URL) does get indexed. So it seems that video pages only get indexed if it has "video" in the URL even if it's a redirect. I'm going to submit the "/w/" version of the URL for these pages and see what happens - maybe the page gets indexed but the video indexing is removed due to the "not the main content" error. |
According to Googles docs it's recommended to have a
Another explanation may be those client logs whom seems to come from Googlebot:
It may also be worth a try to add more structured data to each watch page to convince Googlebot that it's really a watch page, not an article with a video. https://developers.google.com/search/docs/appearance/structured-data/video#examples |
Why not, but I think most other web video platforms (youtube, vimeo...) don't include this tag but are still indexed 😠
I think it's an expected behaviour where Googlebot disabled video support in its engine. |
Sure, but I think Googlebot makes some kind of holistic assessment where other platforms has higher general ranking, loads faster, is easier to crawl, etc. So if we try to perfect on all points, maybe it'll be indexed. |
Seems the issue is mostly fixed on our peertube instances. @kontrollanten, @DVDGuy99 can you confirm? |
Not at our instance, but we haven't installed PT 7 yet |
Most of our new videos are still being put into the "video is not the main content" category (it has been renamed "Video isn't on watch page" by Google). But I do find that after a while (several weeks to more than a month), some of these will be automatically categorised as being video pages. Right now, 60% of our video pages are indexed as videos, the 40% (including almost all the recently uploaded ones) is in the "Video isn't on watch page" category. I've requested a fix validation by Google to see if this can clear up some of these pages, will post the results here. |
Describe the current behavior
Google Search Console gives the error "Video is not the main content of the page" when indexing videos on our PeerTube site.
This is one of the video pages that Google says the video is not the main content:
https://trailers.ddigest.com/w/sbKiNjKTCs8EkNpKb45ku9
(actually, I think it will say that for all the video pages - diving deeper into the video page indexing data, it says « Video is supplementary content on the page »)
Possibly related, but viewing a screenshot of the page generated within Google Search Console shows it displaying a "HLS.js does not seem to be supported" error where the video should be. Doing an exact term search for this on the videos section of Google shows quite a few PeerTube-hosted videos that have this as the crawled text description for the video.
Steps to reproduce
Describe the expected behavior
As these pages are the main video playback pages, the video should of course be the main content of the page and Google should index these as such. Pages with videos that are indexed as the main content will show the video carousel with the video thumbnail as opposed to just a text link.
Additional information
PeerTube instance:
Browser name, version and platforms on which you could reproduce the bug:
Link to browser console log if relevant:
Link to server log if relevant (
journalctl
or/var/www/peertube/storage/logs/
):The text was updated successfully, but these errors were encountered: