Set noindex for Google structured data

338 views Asked by At

I'm using multiple blocks of structured data on my website:

<script type="application/ld+json">
    {
    "@context": "http://schema.org",
    "@type": "Event",
    "name": "Something",
    "url": "http://www.example.com/?id=123"
    }
</script>

This will show another bar under the search results of my website to directly visit the page to see more details about the event.

But if providing links like http://www.example.com/?id=123 Google will also show this link as normal link in search results.

But if setting noindex for this webpage Google will also refuse to list the events, won't it?

Does anybody know a solution?

Here's an image what I mean:

enter image description here

1

There are 1 answers

0
Jérôme Verstrynge On

Put a canonical link with value http://www.example.com/ on the http://www.example.com/?id=123 page. All pages with query parameters will be merged into http://www.example.com/ regarding rankings.