Google structured data - No rich results detected

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dcjohn_maria
Posts: 3
Joined: Tue Nov 28, 2023 8:21 pm

Google structured data - No rich results detected

Post by dcjohn_maria »

Based on this article https://blog.oxygenxml.com/generating_g ... tasks.html, I have added Google structured data in this web help package.
https://documentation.nokia.com/srlinux ... cl-actions
However, the Rich results tool isn't able to detect any rich text content in this package. Am I missing something?
I posted this query in google community support and I got this response.
image.png
image.png (74.39 KiB) Viewed 597 times
I
Attachments
image.png
image.png (74.39 KiB) Viewed 597 times
beniamin_savu
Posts: 31
Joined: Fri Jan 22, 2021 11:05 am

Re: Google structured data - No rich results detected

Post by beniamin_savu »

Hi,

Thank you for contacting us!

Can you please let us know what version of Oxygen WebHelp are you using?

We inspected the link you provided ( https://documentation.nokia.com/srlinux ... cl-actions ) and we noticed that there is no <script> element with type="application/ld+json" in that page. Without having this <script> element in the output page, the Rich results tool will not be able to detect your text content. Your HTML page should contain something like this:

Code: Select all

<script type="application/ld+json">
....
</script>
Please make sure that the google.structured.data transformation parameter is set to 'yes'. You can find additional information about Goole Structure Data in our user manual using the following link:
https://www.oxygenxml.com/doc/versions/ ... -data.html

I hope this helps!

Best regards,
Beniamin Savu
Oxygen WebHelp Team
http://www.oxygenxml.com
dcjohn_maria
Posts: 3
Joined: Tue Nov 28, 2023 8:21 pm

Re: Google structured data - No rich results detected

Post by dcjohn_maria »

Hi,
I am using Oxygen 25.1 version.
Your analysis was correct. My bad :(. I should have checked this before.
I see that this page has some rich results content.
https://documentation.nokia.com/srlinux ... ps-in-dut2
It is detected both in the schema validator and Rich results tool. However, In the rich results tool, reports duplicate entry errors.

Regards,
Diana
dcjohn_maria
Posts: 3
Joined: Tue Nov 28, 2023 8:21 pm

Re: Google structured data - No rich results detected

Post by dcjohn_maria »

The schema validator detects 3 "HowTos" types.
https://validator.schema.org/#url=https ... ation.html
As per the Google support community response, I must combine these "HowTo" types into a single array.
In addGoogleStructuredData.xsl, a HowTo type is added for each step. How do we combine this into a single array?
beniamin_savu
Posts: 31
Joined: Fri Jan 22, 2021 11:05 am

Re: Google structured data - No rich results detected

Post by beniamin_savu »

Hi,

Thank you for your feedback!

The URL for the schema validator from your previous post does not detect any rich result content. When we open the URL, It seems to perform a redirect to https://documentation.nokia.com/srlinux/index.html

In the released Oxygen Publishing Engine version 25.1 kit and Oxygen WebHelp version 25.1 kit we do not have a file named addGoogleStructuredData.xsl. It may be possible to have an old nightly build that contained a development version for the Google Structured Data feature.

You can obtain the released version for 25.1 from our website: Could you please try to download the latest released version of 25.1 and let us know if the problem still persists?

Best regards,
Beniamin Savu
Oxygen WebHelp Team
http://www.oxygenxml.com
Post Reply