How to Check Whether Structured Data URLs Match the Visible Page

Check structured data URLs against visible content and canonical URLs, and learn when image, offer, and entity URLs can legitimately differ.

Published
Reading time
7 min read
How to Check Whether Structured Data URLs Match the Visible Page
On this page

Structured data can contain several URLs that refer to different things: the page itself, a product, an image, or an organization. To check whether a structured data URL matches the page, first identify what the property describes; then compare it with the canonical URL and the content a visitor actually sees.

Key Takeaways

  • Compare page-level URLs with the page’s declared canonical and final destination, but investigate differences rather than assuming every difference is an error.
  • An image URL should identify the relevant image, not the page’s canonical URL. An offer URL may correctly lead to a purchase or product page.
  • An @id identifies an entity and can include a fragment such as #product; it does not always need to be the page URL.
  • Use Google’s Rich Results Test to check eligible markup and Schema.org definitions to understand properties. Valid markup does not guarantee a rich result.

Identify the URLs and what they describe

Open the page in a browser and inspect its structured data. JSON-LD commonly appears in a <script type="application/ld+json"> element. Markup may instead be embedded in HTML as Microdata or RDFa. Check the rendered page as well as the original HTML if your site adds markup with JavaScript.

Record each relevant URL along with its property and entity type. Do not compare every URL to the canonical as though all properties describe the same destination.

Property or patternWhat to check
WebPage.urlDoes it identify the page represented by the markup? Compare it with the final page and declared canonical.
Article.mainEntityOfPageDoes it identify the page on which the article is the main content? It can be a URL or an entity reference.
Product.urlDoes it identify the product being described? It may be the current product page, but the context matters.
Offer.urlDoes it lead to the relevant offer or transaction destination? It can differ from the page URL.
image, or an ImageObject’s url or contentUrlDoes it point to the relevant image or image resource, rather than mistakenly pointing to an unrelated page or asset?
@idDoes it consistently identify the intended entity? A fragment such as #product can distinguish an entity from its page.
An author or organization’s urlDoes it identify that person or organization? It need not match the article or product page.

The applicable properties and expected value types depend on the schema type and nesting. Consult the relevant Schema.org type and property definitions rather than applying one rule to every item.

Advertisement

Check structured data URLs against the page

Work through one page at a time and record the results in a spreadsheet or issue tracker.

  1. Record the requested and final URLs. Open the URL you are auditing and note the address after any redirects. Check whether the destination shows the expected content.
  2. Find the declared canonical. Inspect the page’s HTML for <link rel="canonical" href="…">. Also check HTTP response headers for a canonical Link header if your site uses one. Record conflicting declarations for investigation. A canonical is a signal, not a guarantee that a search engine will select that URL.
  3. Inspect the structured data. Record the entity type, property, and URL value. Follow nested items and references such as @id; an offer or image may be inside a product rather than at the top level.
  4. Compare by purpose. For a page-level URL, compare the destination with the final URL and declared canonical. For an image or offer URL, check that it represents the image or offer described on the page.
  5. Check the visible content. Confirm that the page presents the article, product, organization, or other entity described. For a product offer, also compare details such as price and availability; a matching URL alone does not establish that the markup is accurate.
  6. Open or inspect the referenced destination. Look for redirects, error pages, outdated content, or a destination for the wrong entity. Check image URLs as images; CDN transformations can mean that the visible image and structured-data image have different URL strings while still depicting the same content.
  7. Record the outcome. Mark each value as aligned, explainably different, or needing correction. Include the observed URLs and the reason for your decision.

When comparing URLs, pay attention to the scheme, hostname, path, trailing slash, query parameters, and fragment. Resolve relative URLs using the applicable document base before comparing them. A tracking parameter or redirect may explain a difference, but it is still worth removing unnecessary inconsistencies from page-level markup. Do not automatically discard query parameters: some identify a meaningful variant or page.

Example: a product page

Suppose the browser ends on https://www.example.com/bags/blue, and that page declares the same URL as canonical. Its markup contains:

{
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": "https://www.example.com/bags/blue#product",
  "url": "https://www.example.com/bags/blue",
  "name": "Blue bag",
  "image": "https://www.example.com/images/blue-bag.jpg",
  "offers": {
    "@type": "Offer",
    "url": "https://www.example.com/buy/blue-bag"
  }
}

The product url aligns with the page and canonical. The @id can identify the product separately using a fragment. The image and offer URLs are not expected to equal the canonical: check that the image depicts the blue bag and that the offer destination corresponds to the displayed offer. These example URLs are illustrative, not live destinations.

Advertisement

Validate the markup and investigate discrepancies

Use these complementary checks after your manual comparison:

  1. Run Google’s Rich Results Test. Submit the page URL and inspect detected items, errors, warnings, and the fetched page details available in the test. If a relevant item is missing, investigate whether the markup is present in the rendered page and accessible to Google. The test focuses on Google-supported rich result types; it is not a complete validator for every Schema.org type.
  2. Consult Schema.org. Look up each relevant type and property to understand what it describes and which values it accepts. This helps distinguish a page URL from an entity identifier, an image, or an offer destination.
  3. Check the destination and canonical separately. The rich result test does not replace a review of redirects, canonical declarations, or whether the page visibly supports the marked-up claims.
  4. Retest after changes. Reopen the page, repeat the comparison, and rerun the relevant test. Keep before-and-after values with the issue so the correction can be reviewed.

A technically valid item is not a promise that Google will display a rich result. Eligibility, content and quality requirements, crawling and indexing, and Google’s presentation decisions can all affect the outcome.

Research limitation: Current Google and Schema.org documentation could not be retrieved in this environment. Check their current official guidance for the specific rich result type and properties before publishing changes.

Common Mistakes

  • Forcing every URL to equal the canonical. Images, authors, offers, and entity identifiers may legitimately have different destinations.
  • Treating @id as a canonical tag. It identifies an entity in the structured data; a fragment identifier does not automatically indicate a mismatch.
  • Checking only the page source. JavaScript may add or change markup after the initial HTML response. Conversely, rendered markup should still be checked for consistency with the visible content.
  • Ignoring redirects or parameters. A URL that looks similar may resolve to a different page, variant, or outdated offer.
  • Equating a passed test with a rich result. A validation result does not guarantee display in search.
  • Assuming the declared canonical is Google’s selected canonical. Treat the declaration as a signal and investigate selection separately when needed.

Best Practices

  • Use stable, consistent identifiers for the page and its entities, and document intentional differences.
  • Check localized pages, paginated pages, and product variants individually; their correct destination may differ by content and site setup.
  • Add URL and visible-content checks to publishing and template QA, especially after migrations, redirects, or catalog changes.
  • Prioritize mismatches that send users to the wrong content or misrepresent the page over harmless, understood differences in URL spelling.

Conclusion

A useful URL audit checks meaning as well as syntax. Compare page identifiers with the final and canonical URLs, then verify that image, offer, and other entity URLs describe what visitors actually see.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.