On this page
Before a rebrand, check sameAs URLs in structured data against the profiles your organization actually owns. A URL can respond successfully and still point to an abandoned account, an unrelated organization, or a profile that is inaccessible to the public.
Use this checklist to inventory the links, inspect their HTTP behavior, and record identity verification separately before changing your markup.
Key Takeaways
- Find every relevant
sameAsvalue in your organization’s structured data, including markup generated by templates or plugins. - Check the response and redirect path, but verify ownership and public visibility separately.
- Identify the authoritative profile for each platform before replacing old URLs or removing duplicates.
- Do not assume that adding or correcting
sameAslinks produces a ranking benefit or a Google search feature.
1. Inventory the published URLs
A sameAs value identifies another page associated with the entity described in structured data. Start with the organization’s homepage and other pages that publish organization markup. Inspect both the initial page source and the rendered page: client-side code or a plugin may add or change JSON-LD after the initial response.
In your browser’s developer console, the following snippet looks for sameAs properties in JSON-LD script elements currently present on the page. It reports each value with the enclosing object’s @type and @id, when present. It does not inspect other structured data formats or pages you have not opened.
const findings = [];
function inspect(value, scriptNumber) {
if (Array.isArray(value)) {
value.forEach(item => inspect(item, scriptNumber));
return;
}
if (value === null || typeof value !== "object") return;
if (Object.prototype.hasOwnProperty.call(value, "sameAs")) {
const urls = Array.isArray(value.sameAs) ? value.sameAs : [value.sameAs];
urls.forEach(url => findings.push({
script: scriptNumber,
entityType: JSON.stringify(value["@type"] ?? null),
entityId: value["@id"] ?? "",
sameAs: typeof url === "string" ? url : JSON.stringify(url)
}));
}
Object.values(value).forEach(child => inspect(child, scriptNumber));
}
document.querySelectorAll('script[type="application/ld+json"]')
.forEach((script, index) => {
try {
inspect(JSON.parse(script.textContent), index + 1);
} catch (error) {
console.warn(`Could not parse JSON-LD script ${index + 1}:`, error);
}
});
console.table(findings);
Run it on each relevant page and record parsing warnings as well as the results. Confirm which values belong to the organization: a page may also describe people, products, or other entities. This snippet has not been executed for this article; review its results against the page’s source markup.
Advertisement
2. Compare links with the organization’s profile inventory
For each URL, ask the person responsible for the relevant platform or brand account to identify the authoritative public profile. Compare the markup with the profile’s current URL, displayed brand name, and other identifying details, such as its link back to the organization’s website. A profile can legitimately retain an old name during a transition, so investigate discrepancies rather than automatically discarding it.
Use a worksheet with separate fields for technical and identity checks:
| Field | Record |
|---|---|
| Source | Page and entity where the URL appears |
| Markup URL | Exact sameAs value before the change |
| HTTP check | Date, initial response, redirect chain, and final response |
| Public access | Whether the intended profile is visible without signing in |
| Identity check | Who verified ownership, how, and when |
| Rebrand action | Keep, replace, investigate, or remove, with the intended URL if applicable |
Check for these cases:
- Stale accounts: An old profile may still load but no longer be managed or represent the current organization.
- Duplicates: Similar names can belong to regional teams, fan accounts, impostors, or former accounts. Confirm which profiles the organization intends to represent; do not assume every similarly named account is a duplicate to remove.
- Old brand names: Decide with the account owner whether the profile will be renamed, replaced, or retained during the transition.
- Sign-in walls: A response may lead to a login page rather than a publicly viewable profile. Record public visibility separately from account ownership.
A profile’s name or link back to your site can help an identity check, but neither is conclusive on its own. Use internal account records or confirmation from an authorized account owner when available.
3. Check status codes and redirects
For public profile URLs you are authorized to inspect, you can use a terminal with curl to request headers and follow a bounded number of redirects:
curl -sS -I -L --max-redirs 5 --connect-timeout 5 --max-time 20 'https://example.com/profile'
Replace the example URL with the public profile URL. Review each response in the chain, including the final destination. The command makes a HEAD request; a platform may handle HEAD differently from a normal browser request. A response can also vary because of bot protection, geography, cookies, or authentication. Check the URL in a signed-out browser as well, and record discrepancies for manual review.
A redirect to the intended current profile may be acceptable as a temporary transition, but updating the markup to the confirmed destination avoids relying on that redirect. A redirect to a login page, generic platform homepage, unrelated profile, or error page needs investigation. A successful response alone does not establish ownership, visibility of the intended profile, or correctness of the structured data.
Advertisement
4. Update and review the markup
After the account owner confirms the intended URLs, update the source that generates the markup—such as the site template, CMS setting, or plugin configuration. The following is an illustrative organization object; the URLs are fictional and must be replaced with your own confirmed values.
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Example Rebrand",
"url": "https://example.com/",
"sameAs": [
"https://profiles.example/organizations/example-rebrand"
]
}
After deployment, repeat the inventory and checks on representative pages. Confirm that the organization name and profile URLs match the approved transition plan, that old values are not reintroduced by another template, and that the JSON-LD parses. Keep a record of unresolved profiles and assign an owner and review date.
Schema.org and Google documentation could not be consulted for this article. Before deployment, check their current guidance for the relevant entity and any search feature you are targeting. Schema vocabulary support and Google feature eligibility are different questions; a valid property or a reachable profile does not establish a ranking benefit.
Common Mistakes
- Treating an HTTP success response as proof that the account belongs to the organization.
- Checking only the starting URL and missing a redirect to an unrelated or sign-in destination.
- Replacing all old-brand profiles without confirming which accounts are still managed or publicly used.
- Updating one page while a shared template or plugin continues to publish the old values elsewhere.
- Assuming that a
sameAslink guarantees a particular appearance in search results.
Best Practices
Keep the technical check and identity check as separate worksheet entries. Recheck profiles after the rebrand goes live, especially when handles or redirects are expected to change. Have an authorized account owner approve ambiguous replacements, and use the current structured-data documentation and a suitable validator to review the deployed markup.
Conclusion
A useful sameAs audit answers two different questions: where does each URL lead, and does that destination represent the organization? Resolve both before changing the markup, then verify the deployed pages again.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.